SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    May 2004
    Location
    USA
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Redirection if header isn't affected?

    Can I redirect from the body of a page if I don't have any javascript in the header?

    Here is the deal:

    In the body of some of my pages I check for a condition. If that condition is met I want to redirect to another domain.

    I already include a file in all my pages in the body - so I can just change one file instead of 1400.... if I can redirect with javascript after the page has started loading.

  2. #2
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Javascript can be embedded in script-tags anywhere on your page.


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
  •