Click to See Complete Forum and Search --> : Pass/Get value to PopUp via QueryString


squi
12-19-2005, 05:05 PM
How do i pass a querystring (value from a form) to a PopUp window?


<FORM name="fName" method=POST action="">
<input name=myStuff value="passThisValue123">
<a href="window-pop.html?myStuff" onClick="window.open(this.href, 'pop window', '')">
<img src="img.gif">
</a></FORM>


??

How do I extract it in window-pop.html? I need to put it into another form.

I appreciate any help. It seems simply enough, but I can't figure it out.

deep.dhyani
12-20-2005, 02:07 AM
<html>
<FORM name="fName" method=POST action="">
<input name=myStuff value="test">
<a href="javascript:window.open('window-pop.html?myStuff='+document.fName.myStuff.value)">click</a>
<img src="img.gif">
</a></FORM>
</html>

redfox
12-20-2005, 03:41 AM
use modal dialogbox, it is one way to pass a value from a parent window to the child window(popup window), and you can also pass a value from the child window(popup window) to the parent window