Quote:
Originally Posted by jtek
document.onload = function() {
var frame = parent.frames[0].document;
var links = frame.getElementsByTagName('a');
for (var i=0; i<links.length; ++i) {
links[i].setAttribute('target','_blank');
}
}
|
Nope this code doesn't work.
I'm sure there is a solution to this problem.
Here is the javascript code i put in:
<SCRIPT language="JavaScript">
document.onload = function() {
var frame = parent.frames[0].document;
var links = frame.getElementsByTagName('a');
for (var i=0; i<links.length; ++i) {
links[i].setAttribute('target','_blank');
}
}
</SCRIPT>
is this correct.
If anyone knows, pls reply.
Thanks anyway jtek