|
-
Feb 8th, 2001, 01:42 PM
#1
Thread Starter
Frenzied Member
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!!!
-
Feb 10th, 2001, 10:51 AM
#2
Lively Member
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.
Hope this helps,
Bios
Age: 17
Languages: (Q)BASIC, Visual Basic, Dark Basic,C/C++, Visual C++, Perl, Java Script, HTML, ASP
"DO:BEEP:LOOP"
-
Feb 11th, 2001, 12:01 PM
#3
Thread Starter
Frenzied Member
tx, it make sense,i will try it monday morning!
-
Feb 12th, 2001, 10:08 AM
#4
Fanatic Member
NewPage = window.open('index.html', 'page')
NewPage.blur();
Kurt Simons
[I know I'm a hack but my clients don't!]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|