The JSV_stayOnTop function is used in the onBlur attribute of the <BODY> tag to keep the child window on top.

Syntax

JSV_stayOnTop()

Returns

n/a

Parameters

n/a

Remarks

To use the JSV_stayOnTop function in a window, add this function to the <BODY> tag (e.g., <BODY onBlur="JSV_stayOnTop();">). If you find it necessary to create a function that will do perform other functionality when onBlur is activated, be sure to include the JSV_stayOnTop function as the last call in your new function.

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
function webPageOnBlur() {

    // Your code goes here

    JSV_stayOnTop();
}
</SCRIPT>

<BODY onBlur="webPageOnBlur();">

Dependencies

n/a

Example

The following lines of code

function windowTest() {
    var myWindow = "JSV_Test";
    var wasOpened = JSV_openWindow(myWindow, 'stayOnTopTest.htm', 'status=1,scrollbars=1,resizable=1,width=580,height=240,left=40,top=40,screenX=40,screenY=40');
    JSV_focusWindow(myWindow);
}

produce a new child window that will stay on top when the button is clicked