JavaScript restricts that only one page of the same website can be opened in the same browser.

Source: Internet
Author: User
Tip: you can modify some code before running

<SCRIPT language="JavaScript">Function openclk (){<!--用来打开一个新的窗口-->Another = open ('http: // www.javascript.com/', 'newwindow ');<!--打开新的窗口-->} Function closeclk () {another. close ();<!--关闭打开的窗口-->}</sCRIPT><FORM><INPUT TYPE="BUTTON" NAME="open" value="打开JavaScript网站" onClick="openclk()"><BR><BR><INPUT TYPE="BUTTON" NAME="close" value="关闭JavaScript网站" onClick="closeclk()"></fORM><!--本案例实现了打开关闭窗口的功能--><!--分别通过函数openclk()和closeclk()实现-->
Tip: you can modify some code before running

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.