Help - Search - Members - Calendar
Full Version: Javascript alert with links
HTMLHelp Forums > Web Authoring > Web Site Functionality
macuser9214
Hello.

I want to make a javascript alert with one of the buttons as a link, and one just to go to the site.

Kind of like http://macuser9214.com/alert.htm but i want it to start when someone goes to the site. Not have to push a button.

Any help?
lavazza
QUOTE(macuser9214 @ Jul 8 2007, 01:47 PM) *
...but i want it to start when someone goes to the site. Not have to push a button
It's probable that the vast majority of people who find your site via a search-engine will not come in through the 'front door' (e.g. index.html) and presenting confronting your 'side-door' visitors with an immediate popup robs you and them of the time needed develop a rapport/trust

An OK/CANCEL Confirm box that auto-loads not only looks risky but is also rather difficult to (safely) get rid of - clicking on the top-right X to close it actually fires the 'CANCEL' event and who knows what lurks in there?

By the time I had got rid of such a pop-up, registering would be the LAST thing on my mind! I'd be more likely to see if the site should be or already has been reported as Badware

But... if you're prepared to risk scaring/losing/alienating vistors like me, then a body onload event is probaly the simplest way e.g.
<body onLoad="myScaryOnLoadRegistrationConfirmPopUp();">
with an IF and ELSE for OK and CANCEL


macuser9214
lol.

That's not the first time I've heard that, but I want people to know more about registration, and thats the only way I can think of.

Oh well. I'll think of something else.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.