window common method
Alert (): A message appears
Confirm (): pop-up confirmation box return value to true to false
prompt (): pop-up input box prompt ( "Enter message", "to the input box assigned default values") Return value: determining the input cancellation null value box
open() :打开一个新的浏览器窗口 用法:视窗对象名称 =open (‘url‘ , ‘新视窗名’ , ‘规格‘ )
close() :关闭已开启的浏览视窗 用法:视窗对象名称.close( )
setInterval() 按照指定的周期(毫秒)来调用函数或者计算表达式 用法:temp = setInterval( “函数( )”,毫秒)
clearInterval( ) 取消某setInterval ( )的设置 用法:clearInterval(temp )
setTimeout( ) 在指定的毫秒数后调用函数或计算表达式(记住,次数是一次) 用法:timer =setTimeout( “函数( )”,毫秒)
clearTimeout( ) :取消某setTimeout ( )的设置 用法:clearTimeout(timer)