为了账号安全,请及时绑定邮箱和手机立即绑定

window.open()里面的网址加http://才会显示?不加是指本地的吗?http与https又有什么区别?

window.open()里面的网址加http://才会显示?不加是指本地的吗?http与https又有什么区别?

fanaiwen 2017-11-28 14:33:06
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>window对象</title><script type="text/javascript"> alert("欢迎来到LOL!"); function abc(){    window.open("http://www.baidu.com","_blank","width=600,height=400"); }</script></head><body><form><input type="button" value="点击我,打开新窗口"  onclick="abc()"/></form></body></html>
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 3359 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信