GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   ANyone know why this ez javascript isnt working? (https://gfy.com/showthread.php?t=869297)

xxweekxx 11-14-2008 11:40 AM

ANyone know why this ez javascript isnt working?
 
<head>
<script language="javascript"><!--document.myform.submit()
//-->
</script>
</head>
<body>
<form action="site2.html" method="get"></form>
Please Wait
</body>

Basically this is supposed to take the user to site2.html automatically as they hit my site.. but it isnt working..

StuartD 11-14-2008 11:43 AM

You're trying to execute javascript on a form that isn't created yet. :2 cents:

xxweekxx 11-14-2008 11:48 AM

can u post a simple script i can use here.. all i want to do is move the user to a new page automatically.... im doing this cuz i tried php refresh, meta refresh, and they all lose referrer information..

basically i want to bounce a user from site a to site b Automatically and retain header information.. Please post the javascript?

StuartD 11-14-2008 11:51 AM

Try this:

<script type="text/javascript">location.href="site2.html";</script>

xxweekxx 11-14-2008 11:56 AM

stuart how many percent of people would u say have javascript enabled?

grumpy 11-14-2008 12:08 PM

70.474 99,02% have javascript enabled

btw you will never get a referer that way.

xxweekxx 11-14-2008 12:30 PM

How do u do an auto redirect like from site a>b automatically but maintain referrer?

Im trying to use this for some affiliate networks BUT i want my referrer to show and its not showing

xxweekxx 11-14-2008 12:42 PM

Quote:

Originally Posted by StuartD (Post 15054022)
Try this:

<script type="text/javascript">location.href="site2.html";</script>


Works in IE but firefox just doesnt load shit


All times are GMT -7. The time now is 03:20 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123