I have one page with two IFrames. Here's the main page code:
<iframe id="largepic" src="#" name="lgpc"
onload="lgpcload(this)"
align="left"width="360"height="300" marginwidth=0 marginheight=0 hspace=10 vspace=0 frameborder=1>
</iframe>
The second IFrame contains a webpage of pictures. The first picture will serve as the SRC of the first IFrame.
Here's the function in a seperate .js file.
function lgpcload(obj){
if(obj.src == "#"){
obj.src = frames['nscroll'].document.links[0].href;
}
}
If I take out the IF statement, the page loads in an infinite loop and I have to manually stop IE, using CTRL+ALT+Delete.
Why does this cause IE to keep loading this page, over and over again?
Thanks,
bill
<iframe id="largepic" src="#" name="lgpc"
onload="lgpcload(this)"
align="left"width="360"height="300" marginwidth=0 marginheight=0 hspace=10 vspace=0 frameborder=1>
</iframe>
The second IFrame contains a webpage of pictures. The first picture will serve as the SRC of the first IFrame.
Here's the function in a seperate .js file.
function lgpcload(obj){
if(obj.src == "#"){
obj.src = frames['nscroll'].document.links[0].href;
}
}
If I take out the IF statement, the page loads in an infinite loop and I have to manually stop IE, using CTRL+ALT+Delete.
Why does this cause IE to keep loading this page, over and over again?
Thanks,
bill