I am trying to open a new window without the toolbar and put the focus on field1. I would like to close the old window as well. What is currently happening is the new window is opening and I guess the onload event keeps oepening new widnows...etc. How do I stop multiple onloads ?
abc.asp
<HEAD>
<script type="text/javascript">
<!--
function win()
{
var x=window.open("abc.asp","x","toolbar=no"
;
document.frmabc.field1.focus();
}
//-->
</script>
</HEAD>
<LINK rel="stylesheet" type="text/css" ref="stylesheet.css">
<BODY onload="win()">
thanks
abc.asp
<HEAD>
<script type="text/javascript">
<!--
function win()
{
var x=window.open("abc.asp","x","toolbar=no"
document.frmabc.field1.focus();
}
//-->
</script>
</HEAD>
<LINK rel="stylesheet" type="text/css" ref="stylesheet.css">
<BODY onload="win()">
thanks