HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1253
Number of posts: 3360

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
onLoad Problem! Posted by James98765 on 26 Oct 2004 at 6:21 PM
I need help with making an onLoad function. I want my website to automatically take me from one website to another. For instance, lets say someone goes to www.onload.com. I want that site to automatically send me to www.onunload.com. Could you please help me out. Thanks!
James
James98765
jamesparsons@cox.net
http://www.programmersheaven.com/c/Settings/messageboard.htm
Report
Re: onLoad Problem! Posted by nomi49 on 27 Oct 2004 at 12:43 AM
: I need help with making an onLoad function. I want my website to automatically take me from one website to another. For instance, lets say someone goes to www.onload.com. I want that site to automatically send me to www.onunload.com. Could you please help me out. Thanks!
: James
: James98765
: jamesparsons@cox.net
: http://www.programmersheaven.com/c/Settings/messageboard.htm
:

Add this line to you onload.com default page
....
<body onLoad="window.location='http://www.onnload.com'">
....
....
</body>


nomi49
Report
Re: onLoad Problem! Posted by Weirdofreak on 27 Oct 2004 at 11:12 AM
You don't even need Javascript - there's a simple HTML tag that lets you do it.
<meta http-equiv="refresh" content="0; URL=http://foo.com">
The 0 is the number of seconds to wait before redirecting. You should put a message saying that it's redirecting as well, since some browsers will probably ignore it.
Report
Re: onLoad Problem! Posted by Jonathan on 27 Oct 2004 at 2:04 PM
: You should put a message saying that it's redirecting as well, since
: some browsers will probably ignore it.
:
In my experience, it's very well supported accross the browsers, and unlike JavaScript it's not something people disable. That said, I agree putting a message with a link is probably a good idea too.

Jonathan

###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Report
Re: onLoad Problem! Posted by James98765 on 27 Oct 2004 at 5:47 PM
: : You should put a message saying that it's redirecting as well, since
: : some browsers will probably ignore it.
: :
: In my experience, it's very well supported accross the browsers, and unlike JavaScript it's not something people disable. That said, I agree putting a message with a link is probably a good idea too.
:
: Jonathan
:
: ###
: for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
:
: Thanks a ton everyone! Now my school website is working great.

James
James98765
jamesparsons@cox.net
http://www.programmersheaven.com/c/Settings/messageboard.htm




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.