...

View Full Version : Redirect By AutoClick



Velvet
07-29-2010, 05:23 AM
Hello,

I'm new to Javascript Programming. Therefore be patient with me. :)

I'm looking for a script where if someone goes to www.site1.com this site will automatically go to www.site2.com by simulating a mouse click.

I've looked everywhere on the internet for a solution but had no luck.

Any assistance will be greatly appreciated.

Thanks
Velvet.

kixo
07-29-2010, 07:18 AM
<body onload="javascript:location.href='http://www.site2.com'"></body>

Philip M
07-29-2010, 08:32 AM
<body onload="javascript:location.href='http://www.site2.com'"></body>


That is a simple redirect but I suspect that the OP has more devious intentions. You cannot "simulate a mouse click" nor redirect a user away from a site which is not your own.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum