Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-12-2004, 05:49 PM   PM User | #1
angst
Senior Coder

 
angst's Avatar
 
Join Date: Apr 2004
Location: Toronto, Ontario
Posts: 2,112
Thanks: 15
Thanked 122 Times in 122 Posts
angst is on a distinguished road
Question loading page question?

Hello,
is there a way to redirect a page only after if it completly finished loading using java script?

thanks in advance for your time!
angst is offline   Reply With Quote
Old 04-12-2004, 06:21 PM   PM User | #2
A1ien51
Senior Coder

 
A1ien51's Avatar
 
Join Date: Jun 2002
Location: Between DC and Baltimore In a Cave
Posts: 2,717
Thanks: 1
Thanked 94 Times in 88 Posts
A1ien51 will become famous soon enough
try using onload?
__________________
Tech Author [Ajax In Action, JavaScript: Visual Blueprint]
A1ien51 is offline   Reply With Quote
Old 04-12-2004, 06:29 PM   PM User | #3
angst
Senior Coder

 
angst's Avatar
 
Join Date: Apr 2004
Location: Toronto, Ontario
Posts: 2,112
Thanks: 15
Thanked 122 Times in 122 Posts
angst is on a distinguished road
how do i do that?
can u please give me an example, I'm still learning java script..

thanks in advance for your time!
angst is offline   Reply With Quote
Old 04-12-2004, 08:01 PM   PM User | #4
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
Try Searching Google.

.....Willy
Willy Duitt is offline   Reply With Quote
Old 04-12-2004, 08:43 PM   PM User | #5
scriptkeeper
Regular Coder

 
Join Date: Apr 2003
Location: Northern California
Posts: 169
Thanks: 0
Thanked 0 Times in 0 Posts
scriptkeeper is an unknown quantity at this point
Code:
<html>
<script language="javascript" type="text/javscript">
function ChangePage(){
location.href="PUT URL HERE";
}
</script>
<body onload="ChangePage()">


</body>
</html>
scriptkeeper is offline   Reply With Quote
Old 04-12-2004, 10:22 PM   PM User | #6
shlagish
Senior Coder

 
Join Date: Apr 2003
Location: Canada
Posts: 1,063
Thanks: 2
Thanked 0 Times in 0 Posts
shlagish is an unknown quantity at this point
I think it's document.location....
__________________
Shawn
shlagish is offline   Reply With Quote
Old 04-13-2004, 02:53 AM   PM User | #7
JAVAEOC
Regular Coder

 
Join Date: Oct 2003
Location: SC
Posts: 936
Thanks: 0
Thanked 0 Times in 0 Posts
JAVAEOC is an unknown quantity at this point
Quote:
Originally Posted by shlagish
I think it's document.location....
no --> the simplest thing seems to be JUST location="ddd.htm"
http://www.w3schools.com/js/tryit.as...tryjs_location


Hope this helps
__________________
http://www.bluephoenix.uni.cc/

Last edited by JAVAEOC; 04-13-2004 at 02:55 AM..
JAVAEOC is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:20 PM.


Advertisement
Log in to turn off these ads.