资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
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=utf-8" /> <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%20type%3D%22text%2Fjavascript%22%20%3E%20%0D%0Afunction%20chens(a%2Cb%2Cc%2Cd)%20%0D%0A%7B%20%0D%0Athis.a%3Da%3D%3Dnull%3Falert(%22a%22)%3A%22chen%22%3B%20%0D%0Ab%3D%3Dnull%3Falert(%22b%22)%3A%22%22%3B%20%0D%0Ac%3D%3Dnull%3Falert(%22c%22)%3A%22%22%3B%20%0D%0Adocument.write(this.a)%3B%20%0D%0Athis.d%3D%3Dnull%3Falert(%22d%22)%3A%22%22%3B%20%0D%0A%7D%20%0D%0A%3C%2Fscript%3E"> </head> <body> <input type="button" id="btnan" value="dkdk"/> <input type="button" onclick="location.replace('http://www.glzy8.com');" value="dkskk"/> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%3E%20%0D%0Avar%20newopen%20%3D%20function(i)%20%0D%0A%7B%20%0D%0Areturn%20function()%20%0D%0A%7B%20%0D%0Alocation.replace(%22http%3A%2F%2Fwww.glzy8.com%22)%3B%20%0D%0A%7D%20%0D%0A%7D%20%0D%0Aif%20(document.getElementById(%22btnan%22).attachEvent)%20%0D%0A%7B%20%0D%0Adocument.getElementById(%22btnan%22).attachEvent(%22onclick%22%2Cnewopen(%22popo%22))%3B%20%0D%0A%7D%20%0D%0Aelse%20%0D%0A%7B%20%0D%0Adocument.getElementById(%22btnan%22).addEventListener(%22click%22%2Cnewopen(%22tyty%22)%2Cfalse)%3B%20%0D%0A%7D%20%0D%0A%3C%2Fscript%3E"> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程