39 lines
863 B
HTML
39 lines
863 B
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<script>
|
|
// A position that hits "clickMe" link.
|
|
var X = 68;
|
|
var Y = 103;
|
|
|
|
function onLinkClick()
|
|
{
|
|
alert("SUCCESS -- the link was clicked");
|
|
return false; // Prevent default.
|
|
}
|
|
|
|
function runTest()
|
|
{
|
|
if (window.testRunner) {
|
|
eventSender.mouseMoveTo(X, Y);
|
|
eventSender.mouseDown();
|
|
eventSender.mouseUp();
|
|
}
|
|
}
|
|
</script>
|
|
<title>Frames Test</title>
|
|
<style type="text/css">
|
|
#clickMe {
|
|
position: absolute;
|
|
right: 0px;
|
|
top: 90px;
|
|
font-weight: bold;
|
|
font-size: 24px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body onload="runTest()">
|
|
<a id="clickMe" href="#" onclick="return onLinkClick()">Click Here</a>
|
|
</body>
|
|
</html>
|