G
Guest
Hi I have 2 functions in java script, one opens a second window-this works,
the other is supposed to close this second window, does not seem to be
working. Just wondering if anyone had any ideas.
Here is the code,
the functions are
<script language="javascript">
function openwin(){
win_usr=window.open ("control_numinfo.aspx")
}
function closewin(){
win_usr.close();
}
</script>
below is how I am trying to call the functions,
<script language="javascript" event="onclick()" for="btn_user">
openwin();
</script>
<script language="javascript" event="onclick()" for="btn_clear">
closewin();
</script>
</form>
thanks,
the other is supposed to close this second window, does not seem to be
working. Just wondering if anyone had any ideas.
Here is the code,
the functions are
<script language="javascript">
function openwin(){
win_usr=window.open ("control_numinfo.aspx")
}
function closewin(){
win_usr.close();
}
</script>
below is how I am trying to call the functions,
<script language="javascript" event="onclick()" for="btn_user">
openwin();
</script>
<script language="javascript" event="onclick()" for="btn_clear">
closewin();
</script>
</form>
thanks,