3 <script src=
"resources/document-location.js"></script>
6 // Simulate mousing over the Navigate button.
7 var button
= document
.getElementById("navigate");
8 var x
= button
.offsetLeft
+ button
.offsetWidth
/ 2;
9 var y
= button
.offsetTop
+ button
.offsetHeight
/ 2;
10 eventSender
.mouseMoveTo(x
, y
);
11 eventSender
.mouseMoveTo(0, 0);
15 <body onload=
"start()">
16 This tests that assigning to document.location from a button click adds a
18 <button onmouseover=
"setLocation()" id=
"navigate">Navigate
</button>