![]() |
javascript help
this was a post on webmaster q and fuckin a from me:
I'm trying to do a simple javascript... What it does: If a person views my page and exits without clicking any links, a popup window comes up. But if they click a link, no popup comes up when the page unloads. I know its something with onClick="set a variable' then a function that is called in onUnload that checks the var value, but since I do not know Javascript at all, and I am lost. Any help is appreciated, thanks. |
is anything in java simple ??? :glugglug
|
check out http://javascriptkit.com
|
sent you a complete solution for that.
Better post 1 time only :321GFY :Graucho |
Hey.
HTML code wont paste easy - so i changed all the "<" to "< " (added space so it wont fuckup the reply)... So here it is <HR> < HTML> < HEAD> < SCRIPT> var clicked = 0; function click_link (url){ clicked = 1; window.open(url); }; function closewin() { if (clicked==0) {window.open('http://www.xxxmanager.com');}; }; < /SCRIPT> < /HEAD> < BODY ONUNLOAD="closewin();"> < A HREF="Javascript:click_link('http://www.tgplay.com');">http://ww w.tgplay.com< /A> < BR> < A HREF="Javascript:click_link('http://www.gofuckyourself.com');">h ttp://www.gofuckyourself.com< /A> < BR> < BR> courtesy of XXXManager.com ;) < /BODY> < /HTML> |
thanks man
|
All times are GMT -7. The time now is 04:00 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123