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