|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
This code will generate a popup if the onclick handler is not placed in the url - but if the user clicks forward or back the popup appears which is no good can anyone jig it and get this to work properly!
Place onunload in body tag: <BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onunload="xit()"> Function in body tag <SCRIPT LANGUAGE="JavaScript"> <!-- var backout=true; function xit(){ var console='http://www.getmesex.com/'; if (backout) open(console, 'backout'); } // --> </SCRIPT> Place this on the hyperlink you dont want the popup to come up on. <A HREF="target.html" onclick="backout=false">something</A> thx in advance |
|
#2
|
|||
|
|||
|
Under wich conditions do you want the popup to be shown ?
The code you showed, would *only* show the popup if the page is reloaded. |
|
#3
|
|||
|
|||
|
I would like the popup to be shown when the user basically is off our URL - so if they go back to another URL then I want the popup to be shown otherwise it should not. I could use frames to achieve this but I dont want to use them they are worse than popups!
As you can guess this is for an Adult site which my company has been contracted to do - and I dont like doing Popups at all but the client wants it! Thx in advance |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > POP UP disabled when user goes back or forward |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|