SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict frankiehots's Avatar
    Join Date
    Jan 2002
    Location
    U.S.A. *Blue State*
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Redirecting a page without access to the body tag

    Is it possible to use Javascript to redirect a page when you do not have access to the anything inbetween the head tags and cannot touch the body tag? I know some typical ways to redirect pages involve a meta refresh or using onload in the body tag. I have an instance where I can't do either. I also need to have a 3 second delay.

  2. #2
    @php.net Salathe's Avatar
    Join Date
    Dec 2004
    Location
    Edinburgh
    Posts
    1,396
    Mentioned
    61 Post(s)
    Tagged
    0 Thread(s)
    Code:
    // JS to redirect, perhaps?
    setTimeout("window.location = 'newpage.html'", 3000);


Bookmarks

Posting Permissions

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