hey im trying to pass the value of a text box to a popup window.
heres my code
reg.js
reg.htmlCode:function OpenWin(textbox) { strName = textbox.value; window.open('DYNAMIC/validate.asp?Username='+strName+'',null, 'height=200,width=800,status=no,toolbar=no,menubar=no,location=no'); }
CheersCode:<script language="javascript" src="include/reg.js"></script> <form name="Register" method="post"> <a href="javascript:OpenWin(Register.username);">Check</a> <input type="text" id="username" value="username"> </form>![]()


Reply With Quote