һ
 ע

QQ¼

ֻһٿʼ

ƼĶ

+
̳ WEBҳǰ뿪 ǰ̨ű

js ͨʾתҳ

[]
39086 websjy 2016-2-14 18:43:48
| ʾȫ¥
1F

ϵ½עᣬύѣø๦ܣϴزIJޣ

Ҫ ¼ ſػ鿴ûʺţע  

x
ͨʾתҳ

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>js ͨʾתҳ</title>
  6. </head>
  7. <body>
  8. <script>
  9.     window.onload = function(){    //õҳʱִ
  10.         var btn =document.getElementsByTagName("button")[0] //ȡbtnԪ
  11.         btn.onclick = function(){    //buttonһ¼
  12.             var answer = confirm("ǷԴ")   //ȷϿֵanswer
  13.             if(answer)    //жǷȷ
  14.             window.location ="http://www.websjy.com/" //ȷĻת
  15.         }
  16.     }
  17. </script>
  18.    <button>ת</button>
  19. </body>
  20. </html>
ƴ


Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ
С 2016-2-15 19:54:04
| ʾȫ¥
2F
ҲԽ
var btn =document.getElementsByTagName("button")[0] //ȡbtnԪ

ɣgetElementsByClassName
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ ֧
С 2016-2-15 19:54:48
| ʾȫ¥
3F
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>js ͨʾתҳ</title>
  6. </head>
  7. <body>
  8. <script>
  9.     window.onload = function(){    //õҳʱִ
  10.         var btn =document.getElementsByClassName("CC")[0] //ȡbtnԪ
  11.         btn.onclick = function(){    //buttonһ¼
  12.             var answer = confirm("ǷԴ")   //ȷϿֵanswer
  13.             if(answer)    //жǷȷ
  14.             window.location ="http://www.websjy.com/" //ȷĻת
  15.         }
  16.     }
  17. </script>
  18.    <button class="CC">ת</button>
  19. </body>
  20. </html>
ƴ
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ ֧
fhuj3d96 2016-12-7 02:35:19
| ʾȫ¥
4F
ʲôÿ ˵һ°
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ ֧
fhuj3d96 2016-12-30 05:01:10
| ʾȫ¥
5F
- -.......
ϲݻױѵ http://www.xszsz.com/
ϲݻױѧУ http://www.xszsz.com/
ϲѧУ http://www.xszsz.com/
ϲӰѵ http://www.xszsz.com/
ϲӰѵѧУ http://www.xszsz.com/
ϲӰѵ http://www.xszsz.com/
ϲרҵӰѵ http://www.xszsz.com/
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ ֧
qtjpw 2018-7-24 15:52:19
| ʾȫ¥
7F
Ƶվvipѿ˽俴ȫvipӰӾѿ
http://www.bajiekk.com/
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ ֧
б

ֹ

²

̳¡ͼƬѷϴվԭתԻ,µİȨԭ
վַİȨ֪ͨǵĹԱ,Ա(Email:admin@websjy.com)ʱȡȨɾ
ܾκκʽڱ̳л񹲺͹ִ!

QQ| 42011102000510|Archiver|ֻ|Դ ( ICP14013341-1

GMT+8, 2018-8-15 21:15

Powered by Discuz! X3.2

ԴԴվ  ԴAPPӦ֮

ٻظ ض б