Getting URL Variables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Smoke

    Getting URL Variables

    if the url was thispage.htm?da y=4

    how does one grab the day value?

    Thanks in advance


  • Michael Winter

    #2
    Re: Getting URL Variables

    "Smoke" wrote on 14/11/2003:
    [color=blue]
    > if the url was thispage.htm?da y=4
    >
    > how does one grab the day value?[/color]

    window.location .search will return: ?day=4

    You can then use String methods to parse the string

    Mike

    --
    Michael Winter
    M.Winter@[no-spam]blueyonder.co.u k (remove [no-spam] to reply)


    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: Getting URL Variables

      Smoke wrote:
      [color=blue]
      > if the url was thispage.htm?da y=4
      >
      > how does one grab the day value?[/color]




      PointedEars

      Comment

      Working...