I have been searching everywhere for this but it seems like I'm searching on the wrong things - or isn't it possible?
To make it even clearer, I want the focus to be on the big page and the popup window in the background (no focus).
Can someone help me with this? Would really appreciate it!
Thanks for taking time reading my question...
In the head of the page (<head>):
<script type="text/javascript">
<!--
function pop() {
// open a popup
window.open('somepage.htm','','');
// focus this window again
self.focus();
}
//-->
</script>
Then in the body of the page (<body>):
<script type="text/javascript">
<!--
// get around some popup blockers
window.setTimeout('pop()',50);
//-->
</script>
Hope that helps
Jordan
========
Actually, the second script block can be omitted and just use the onload attribute of the body tag like so:
<body onload="window.setTimeout('pop()',50);">