Home > php教程 > php手册 > javascript 方法一些使用方法

javascript 方法一些使用方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:01:28
Original
1184 people have browsed it

!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" / titl

 

无标题文档

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></script>

var newopen = function(i)

{

  return function()

  {

    location.replace("http://www.com-edu.cn");

  } 

}

if (document.getElementById("btnan").attachEvent)

{

document.getElementById("btnan").attachEvent("onclick",newopen("popo"));

}

else

{

document.getElementById("btnan").addEventListener("click",newopen("tyty"),false); 

}

 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
What are JavaScript hook functions?
From 1970-01-01 08:00:00
0
0
0
What is JavaScript garbage collection?
From 1970-01-01 08:00:00
0
0
0
c++ calls javascript
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template