<html> < head> < script type="text/javascript">

function onclick1(){ alert("Click button"); } < /script> < /head>

<body > < input type="button" onClick="onclick1()" value="button"/> < /body> < /html>

 

 

当代码如下:

<html> < head> < script type="text/javascript">

function onclick(){ alert("Click button"); } < /script> < /head>

<body > < input type="button" onClick="onclick()" value="button"/> < /body> < /html>

 

方法名字onclick()时候会不弹出对话框信息。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-02-28
  • 2022-02-25
  • 2021-07-08
  • 2021-11-27
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
相关资源
相似解决方案