Click to See Complete Forum and Search --> : "Always on top" function?


Topper_Harley
01-08-2003, 09:50 AM
Hey guys, Im looking for some function that makes a popup window an always raised popup. Do you know anyone?

Thanks!

AdamGundry
01-08-2003, 10:09 AM
You can make a popup window always on top using the alwaysRaised property, i.e. when you call window.open put the string 'alwaysRaised=1' in the last parameter.

However, this is a secure feature which means you will need to be using a signed script. There is information on Javascript security here (http://developer.netscape.com/docs/manuals/communicator/jsguide4/sec.htm#1015075).

Adam

Topper_Harley
01-08-2003, 10:25 AM
Cool...but this only works in Netscape I think

I foud the following source code:

<SCRIPT LANGUAGE="JavaScript">
<![CDATA[
<!--
var alwaysTop = true;
function toggleTop() {
alwaysTop = !alwaysTop;
if (alwaysTop) {
window.onblur = window.select;
} else {
window.onblur = null;
}
}

// -->
]]>
</SCRIPT>

But it works in a very weird way...sometimes when the popup is closed, it passes the alwaystop property to the opener window..and that sucks!

Any other code like this?

Thanks