lorenw
December 8, 2010, 5:03pm
1
Hi all, still beating my head for a popup window anyway I can get it.
With JavaScript I can change the content within tag “bodies” but is it possible to change the actual tag itself.
<form id="loginForm" name="login" action="" method="post" onSubmit="timerWindow($username)">
<input type="text" name="username" value="" onBlur="doUsername();">
I’m using onBlur on the username field so as soon as the event happens I can do the JavaScript call. What I want to do is have the username (that was just entered) passed to the timerWindow function. I think it is getting close to being solved.
Thanks.
lorenw
December 8, 2010, 5:19pm
2
I’m playing with alerts and getting somewhere.
<script type="text/javascript">
function showAlert() {
var name_uname = document.getElementById('uname');
var uname = name_uname.value;
alert('you are ' + uname + '.');
}
</script>
<form id="loginForm" name="login" action="" method="post" onSubmit="timerWindow($username)">
<input id=uname type="text" name="uname" value="" onBlur="showAlert();">
My alert is working, now just need some document write magic or something.
Thanks
onsubmit="timerWindow(this.uname.value)"
lorenw
December 8, 2010, 9:16pm
4
Thank you, I was trying to make things much more complicated than they needed to be.
I am happy now, thanks again.