Window. Open open Open the form and if nested code, window. open nested

Source: Internet
Author: User

Window. Open open Open the form and if nested code, window. open nested

If you don't talk much about it, paste the Code directly.

The Code is as follows:

<Script> function openWindow () {var my = confirm ("do you want to open the window? ") If (my = true) {var url = prompt (" by entering the dialog box, determine the url to open "," http://www.imooc.com ") if (url! = Null) {window. open ('htttp: // www.refw.org.cn ',' _ blank ', 'width = 300, height = 300, scrollbars = no, menubar = no ')} else {alert ('Don't open');}/* if nested */} else {alert ("88 ")}} </script> <body> <input type = "button" onclick = "openWindow ()" value = "click"> </body>

The code is just a few simple words. If you have any questions, please leave a message. The editor will reply to you in time!

Articles you may be interested in:
  • JQuery adaptive IFrame height (nested compatibility with IE, ff, safafi, chrome)
  • Js implementation of web pages to prevent nesting by iframe framework and the differences between several location. href
  • Name of multiple windows opened with window. open () in js
  • Javascript window. open the new window and you cannot open it again. How can this problem be solved?
  • Window. open () Explanation and browser compatibility examples
  • In js, window. open opens a new page.
  • Describes the nested use of if Statements in Python.
  • How to use if statement nesting in Lua
  • Detailed description of nested Writing of if... else statements in Java programming

Related Article

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.