HTML pop-up window with popup dialog box

Source: Internet
Author: User

Popup dialog box

<Scripttype= "Text/javascript">  <!--Alert ("Good morning!"); //alert accepts only one parameter, which is a string, and all the things that alert does is to put this string//returned to the user with a hint box intact, we have seen this usage many times beforeAlert ("Hello,"+Prompt ("What ' s your name?")+ "!"); //prompt is a query box that generates a query input window while waiting for user input results//to continue with the following program, when the user input is completed, click Confirm, it will return the input string//if the user clicked the Cancel button, it would return nullif(Confirm ("Is you OK?"))  //Confirm is a confirmation box that produces a yes| No confirmation prompt box, if answer yes, it returns true//If the answer is no, it returns falseAlert ("greate!"); ElseAlert ("Oh, what ' s wrong?");  -  

Window.location.href= "http://www.baidu.com";

</Script>

Pop-up window

<Scriptlanguage= "JavaScript">varWin_art=window.open ("the connection path of the new window pops up","Info","width=270,height=300");
Window.location.href= "http://www.baidu.com";
</ Script >

HTML pop-up window with popup dialog box

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.