Modal windows and non-modal windows

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.