[Javascript] Passing parameters to a new page

Hassan Schroeder hassan at webtuitive.com
Wed May 16 10:45:14 CDT 2007


Del Wegener wrote:

> On my algebra website I have a button labed QUIZ at several location on
> each
> of many pages.  Each of these locations has a NAME.  The intent is that
> clicking on this button takes me to a new page which presents an
> interactive
> quiz on the material associated with the location of the particular button
> that was clicked.
> 
> Is there any way for me to pass NAME to the new page ? 

Is this "button" an actual input or button element in a form? If so,
and clicking the button submits the form, you just need to have the
NAME as a hidden input in the form.

OTOH, if it's a pseudo-button -- link masquerading as a button --
you need to append the NAME as a query string on the link.

(BTW, it's good mailing list ettiquette to start a new thread for a
new topic, instead of replying to an ancient unrelated email...)

FWIW,
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
                opinion: webtuitive.blogspot.com
				
                          dream.  code.





More information about the Javascript mailing list