Forum Moderators: open

Message Too Old, No Replies

popup and frames

         

scorpion

9:45 pm on Apr 21, 2003 (gmt 0)

10+ Year Member



How can you do a popup on exit if you are using a hidden frame code?

e.g.

<FRAMESET border=0
frameSpacing=0 rows=100%,* frameBorder=no SCROLLING="no">
<FRAME src="displaythis.html" frameBorder=0 SCROLLING=auto BORDER=0>
</FRAMESET>
<noframes>
<body>etc...</body>
</noframes>

I want a popup on exit, however, the <body> tag only appears in the noframes section so how can this be done to be in the frameset section?

ShawnR

11:04 pm on Apr 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



(I don't really care much for pop-ups on exit, but...) You can define onload and onunload attributes of the frameset tag.

For example: <FRAMESET border="0" onunload="javascript:...." rows="100%,*" frameBorder="no" SCROLLING="no">

Two things to note:
1. You need quotes around the values of each attribute.
2. rows="100%,*" seems strange. You don't have a second frame, and even if you did, no one would be able to see it as your first frame takes up 100% of the window. Why is this a frameset at all?

Shawn

scorpion

11:24 pm on Apr 21, 2003 (gmt 0)

10+ Year Member



to hide the url of a redirected page...

ShawnR

11:34 pm on Apr 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Understood. I think rows="100%" would be better.

Shawn