HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 28th, 2000, 01:22 PM
iwarner iwarner is offline
BrainFreeze
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: London
Posts: 318 iwarner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 41 m 9 sec
Reputation Power: 9
Send a message via ICQ to iwarner Send a message via Yahoo to iwarner
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

Reply With Quote
  #2  
Old November 29th, 2000, 07:50 AM
twista twista is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 23 twista User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old November 30th, 2000, 06:18 AM
iwarner iwarner is offline
BrainFreeze
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: London
Posts: 318 iwarner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 41 m 9 sec
Reputation Power: 9
Send a message via ICQ to iwarner Send a message via Yahoo to iwarner
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > POP UP disabled when user goes back or forward


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT