Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-14-2008, 11:40 AM   #1
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
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..
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2008, 11:43 AM   #2
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
You're trying to execute javascript on a form that isn't created yet.
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2008, 11:48 AM   #3
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
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?
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2008, 11:51 AM   #4
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
Try this:

<script type="text/javascript">location.href="site2.html";</script>
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2008, 11:56 AM   #5
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
stuart how many percent of people would u say have javascript enabled?
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2008, 12:08 PM   #6
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
70.474 99,02% have javascript enabled

btw you will never get a referer that way.
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2008, 12:30 PM   #7
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
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
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-14-2008, 12:42 PM   #8
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
Quote:
Originally Posted by StuartD View Post
Try this:

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

Works in IE but firefox just doesnt load shit
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.