Skip to content

Commit 9de9609

Browse files
committed
Test html update for Click Link
1 parent 0755340 commit 9de9609

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

atest/resources/html/javascript/click_modifier.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,24 @@
1717
document.getElementById("output").innerHTML="Normal click";
1818
}
1919
}
20+
function popup(mylink, windowname) {
21+
if (! window.focus)return true;
22+
var href;
23+
if (typeof(mylink) == 'string')
24+
href=mylink;
25+
else
26+
href=mylink.href;
27+
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
28+
return false;
29+
}
2030
</script>
2131
</head>
2232
<body>
2333
<h1>Clicking with modifier</h1>
2434
<p id="info">Watch the output below</p>
2535
<p id="output">initial output</p>
2636
<button type="button" id="Button" onmousedown="isKeyPressed(event)">Click me!</button>
37+
<a href="popupwindow.html" onmousedown="isKeyPressed(event)" onClick="return popup(this, 'myName')">link text</a>
2738
</body>
2839
</html>
2940
<!DOCTYPE html>

0 commit comments

Comments
 (0)