passing variables from one html page to another

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rowen33
    New Member
    • Mar 2007
    • 3

    passing variables from one html page to another

    I am trying to pass a variable form one Netscape 4.79 html page to another using Javascript? How can I do this? Greatly appreciated...
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Moved to JavaScript...

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Location.search gives you the path from the question mark. See link. Parse the string contained in that property on the second page.

      On the first page, construct the string, e.g.
      Code:
      location.href="newpage.html?var=" + myVar;

      Comment

      Working...