the body of the pop-up window method / open and close

window body approach 
built-in functions
alert()
parseInt()
parseFloat()

setInterval();
setTimeout();
clearTimeout();
clearInterval();
。。。。。。。。。。
   Information box 
     Alert ( "123 123 132" ); 

     dialog: OK to get information entered, got canceled null 
     var A = prompt ( "Please enter the amount you want to recharge" ); 
     console.log (A) 

     selection box 
     var A = Confirm The ( "What it will pop up a" ) 
     console.log (a) 
Demo:
the Fn function () { 
var = Confirm The A ( "punch you money?") // equivalent to a Boolean value selector
IF (A) {
prompt ( "noble user, enter the amount you recharge")
} the else {
Fn ();
}
}
Fn ()
 

  The method of opening and closing the window

var obtn = document.getElementById ( "BTN" );
 var obtn2 = document.getElementById ( "btn2" ); 
obtn.onclick = function () {
     // Open ( "http://www.baidu.com", "_blank "," width = 300, height = 300, = 200 is left, Top = 200 is "); 
  Open (" ./. 6 timer .html "," _ blank ", " width = 300, height = 300, left = 200, = 200 is Top " ); 
    
} 

obtn2.onclick = function () { 
  Close (); // Close themselves 
} 

// non open page script

 

Guess you like

Origin www.cnblogs.com/hy96/p/11409017.html