window.open(<URL>, <窗口名称>, <参数字符串>)
2015-01-19
confirm 消息对话框通常用于允许用户做选择的动作,如:“你对吗?”等。弹出对话框(包括一个确定按钮和一个取消按钮)。
2015-01-19
var mymessage=confirm("是否打开?")
// 新窗口打开时弹出确认框,是否打开
if (mymessage==true)
{window.open('http://www.imooc.com','_blank','width=400px,height=500px')}
// 新窗口打开时弹出确认框,是否打开
if (mymessage==true)
{window.open('http://www.imooc.com','_blank','width=400px,height=500px')}