SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question What about a script to check if my site is your start page?

    i understand the homepage script is obsolete or whatever, so does anyone know if there is a script to check if the site the user is visiting is already their start page?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by bigdyce504 View Post
    i understand the homepage script is obsolete or whatever, so does anyone know if there is a script to check if the site the user is visiting is already their start page?
    No, that sort of information is not provided by the web browser to JavaScript.
    Sometimes you can get specifics, such as the isHomePage method on Internet Explorer, but you'll find that it's very different if not non-existant across different web browsers.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Member
    Join Date
    Feb 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by paul_wilkins View Post
    No, that sort of information is not provided by the web browser to JavaScript.
    Sometimes you can get specifics, such as the isHomePage method on Internet Explorer, but you'll find that it's very different if not non-existant across different web browsers.
    Ok, Thanks...Back to the drawing board


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
  •