资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
一个链接按两种方式打开两个网址的方法
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>让链接同时具备两种打开方式</title> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3CSCRIPT%20LANGUAGE%3D%22JavaScript%22%3E%20function%20adClick(ad%2C%20site)%20%7B%20window.open(ad)%3B%20window.location%20%3D%20site%3B%20%7D%3C%2Fscript%3E"> </head> <body> <a href="javascript:adClick('http://www.glzy8.com', 'http://glzy8.com/tools/index.html');" _ewebeditor_ta_href="javascript%3AadClick('http%3A%2F%2Fwww.glzy8.com'%2C%20'http%3A%2F%2Fglzy8.com%2Ftools%2Findex.html')%3B"> 点我一下试试哦~</a> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程