Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts

    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!

  • #2
    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
    try using onload?
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    how do i do that?
    can u please give me an example, I'm still learning java script..

    thanks in advance for your time!

  • #4
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try Searching Google.

    .....Willy

  • #5
    Regular Coder
    Join Date
    Apr 2003
    Location
    Northern California
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    <html>
    <script language="javascript" type="text/javscript">
    function ChangePage(){
    location.href="PUT URL HERE";
    }
    </script>
    <body onload="ChangePage()">
    
    
    </body>
    </html>

  • #6
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I think it's document.location....
    Shawn

  • #7
    Regular Coder
    Join Date
    Oct 2003
    Location
    SC
    Posts
    936
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Last edited by JAVAEOC; 04-13-2004 at 03:55 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •