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