打開窗口:
open()方法可以查找一個已經存在或者新建的瀏覽器窗口。



代碼window.open('http://www.imooc.com','_blank','width=300,height=200,menubar=no,toolbar=no, status=no,scrollbars=yes')
關閉窗口:
close()關閉窗口


練習:


open()方法可以查找一個已經存在或者新建的瀏覽器窗口。
代碼window.open('http://www.imooc.com','_blank','width=300,height=200,menubar=no,toolbar=no, status=no,scrollbars=yes')
close()關閉窗口