About This Product
FontsMadeEasy.com
 
Search This Database:
| Over 5000 Free Fonts | Tutorials | Javascript Forum | Other Javascript Resources | Cheat Sheet
Error processing SSI file

Passing parameters to a page

Question: Can I pass parameters from one my page to another?

Answer: Yes, you can pass a parameter to another page in several different ways:

  • by storing the parameter in a cookie
  • by storing the parameter in a variable of another window or frame
  • by appending the parameter to the destination page's URL as a query string
Here is a simple demo illustrating all these methods for passing parameters. The value to be passed is the string 'It worked!'. When you click on the button below, a script on this page stores the parameter in a cookie named parm_value and in a top-level variable top.parm_value. Then the script directs your browser to the URL parm_get.htm appended with the URL-encoded parameter value.

BackBack