PDA

View Full Version : keep window on top



lgk
01-16-2005, 10:44 PM
I trying to keep the popup window on top after the button is pushed using this method.Can anybody help me with this please and thanks.


<body onblur="self.focus();">


<HTML>
<HEAD><SCRIPT>
var _console = null;
function debug(msg)
{
// Open a window the first time we are called, or after an existing
// console window has been closed.
if ((_console == null) || (_console.closed)) {
_console = window.open("","console","width=400,height=300,resizable");
// Open a document in the window to display plain text.
_console.document.open("text/plain");
}

_console.document.writeln(msg);
}

</SCRIPT>


</HEAD>

<BODY BGCOLOR="#FFFFFF">
<SCRIPT>var n = 0;</SCRIPT>
<INPUT TYPE="button" VALUE="Push Me"
onClick="debug('Repair complaint#1-You have pushed me');">
</FORM>
<FORM>
<INPUT TYPE="button" VALUE="Push Me"
onClick="debug('You have pushed me');">
</FORM>
<INPUT TYPE="button" VALUE="Push Me"
onClick="debug('Repair complaint#1-You have pushed me');">
</FORM>
<FORM>
<INPUT TYPE="button" VALUE="Push Me"
onClick="debug('You have pushed me');">
</FORM>



</BODY>
</HTML>