We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e32976 commit d17caa2Copy full SHA for d17caa2
JavaScriptBook/code/blank_alink.md
@@ -0,0 +1,20 @@
1
+### 空连接 跳转
2
+
3
+```
4
+<html>
5
+<head>
6
+ <title>test link </title>
7
+</head>
8
+<body>
9
+ <div style="background:green;height:90px;"> <a id="alink" onclick="myJsFunc()" href="javascript:void(0)">this is div and linke</a> </div>
10
+</body>
11
+</html>
12
+<script type="text/javascript">
13
+ function myJsFunc(){
14
+ alert('link link to www.google.com')
15
+ if(confirm('gogo?')){
16
+ window.location.href="www.google.com"
17
+ }
18
19
+</script>
20
0 commit comments