java script passing an object :s *RESOLVED*
hey im trying to pass the value of a text box to a popup window.
heres my code
reg.js
Code:
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');
}
reg.html
Code:
<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>
Cheers :p