js跳转新窗口

Posted on 2017-06-07 10:56  断弦悠扬  阅读(130)  评论(0)    收藏  举报

语法:window.open(url,[target]);

eg:

window.open("index.html");

window.open("index.html","_blank");

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3