<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; Charset=utf-8 "/> <title> Untitled document </title> <script language=" javascript "type=" Text/javascript "> function Chens (a,b,c,d) {This.a=a==null?alert ("a"): "Chen"; B==null?alert ("B"): ""; C==null?alert ("C"): ""; document.write (THIS.A); This.d==null?alert ("D"): ""; } </script> </pead> <body> <input type= "button" id= "Btnan" value= "dkdk"/> <input type= "but Ton "onclick=" Location.replace (' http://www.jb51.net '); "value=" Dkskk "/> <script> var newopen = function (i) { return function () {location.replace ("http://www.jb51.net"); } if (document.getElementById ("Btnan"). attachevent) {document.getElementById ("Btnan"). Attachevent ("onclick", Newopen ("Popo")); else {Document.geteLementbyid ("Btnan"). AddEventListener ("Click", Newopen ("TyTy"), false); } </script> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]