Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript, onunload event, and multiple frames

Status
Not open for further replies.

Crundy

Programmer
Jul 20, 2001
305
GB
I am trying to capture the onunload event in Netscape 4 using this piece of javascript:

<script>
var exit=true;

function xit(){
if (exit)
open(&quot;URL&quot;,&quot;&quot;,&quot;width=390,height=200&quot;)
}

</script>

with <FRAMESET cols=&quot;whatever&quot; onunload=&quot;xit()&quot;> etc

It works fine with a two window frameset, but not with a three window frameset (regardless of which frameset tag I place the onunload attribute)

Anyone have any ideas?
 
you mean
<frameset .... onunload=&quot;xit()&quot;>
<frameset ...>
<frame ...>
<frame ...>
</frameset>
<frame ...>
</frameset>
doesn't work ?

then try putting the call to onunload in each <frameset ...> tag, then in each <body ..> of each frame ... if it's still not working, maybe you should read the faq on event handling
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top