-
how can i open a new window but not giving it the focus!
here what i do right now:
function oopenL(){
window.open('http://100.100.100.78/clients/asp/lock.asp','_blank','width=100,height=100,left=3000,top=3000,menubar=0,location=0,toolbar=0,personalb ar=0,status=0,scrollbars=0,dependent=yes');
}
that way i don't see it but it has the focus so on the onLoad of the new window i put:
onLoad="opener.focus();":
this work but the problem is that my new window
is an asp page and it can take about 2 to 5 second to load,
so the onLoad event does not fire as soon as it open!!
does somebody know what i could do!!!
-
onLoad doesn't happen until the file is fully loaded instead just at the top of the document put:
Code:
<Script language="JavaScript">
opener.focus();
</Script>
that way the second the browser gets to the first line of code (which is that) it will do it.
:D Hope this helps,
-
tx, it make sense,i will try it monday morning!
-
NewPage = window.open('index.html', 'page')
NewPage.blur();