JS Pop-up mode window and non-modal window
JS Popup Mode window
In general, the window that appears in front of you is activated to get the focus, and if the window is always in front,
You can manually set the window to focus immediately when blur, or use a modal, modeless dialog box.
Specific steps
Method One: Pop-up window <body> Add code: onblur= "Self.focus ()":
<body onblur= "Self.focus ()" >
Method Two: Use the Showmodeldialog Method Resume Mode dialog box, his parameter description such as table:
<script>
function Topwin () {
Window.showmodeldialog ("http://www.qq.com", "parameters (in the form of objects)", "dialogwidth:300px;
Dialogheight:300px;scroll:no;stsus:no ")
}
</script>
Method Three: Use the showModelessDialog Method resume modeless dialog box, his parameters are exactly the same as the modal dialog box
This article from the "Conversation" blog, reproduced please contact the author!
Modal windows and non-modal windows