手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >js中window.open打开一个新的页面
js中window.open打开一个新的页面
摘要:Inserttitlehere/*打开同一个新的页面,不会再次打开新页面*/functionopen1(){window.open("htm...

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script type="text/javascript"> /* 打开同一个新的页面,不会再次打开新页面 */ function open1(){ window.open("html01.html","aaa"); } function open2(){ window.open("html02.html","aaa"); } </script> </head> <body> <a href="#" rel="external nofollow" rel="external nofollow">点击进入1</a> <a href="#" rel="external nofollow" rel="external nofollow">点击进入2</a> </body> </html>

【js中window.open打开一个新的页面】相关文章:

深入理解JavaScript中的对象

一条一条新闻向上的滚动 不错

javascript中FOREACH数组方法使用示例

学习javascript文件加载优化

与ClientWidth有关的一点资料

多个iframe自动调整大小的问题

JavaScript中eval函数的问题

网页与键盘

JS实现模拟风力的雪花飘落效果

JS+DIV实现鼠标划过切换层效果的方法

精品推荐
分类导航