Found at click location:
When you scroll, Opera and Safari start reporting weird elements. That's because they need
pageX/Y
coordinates. The test script uses clientX/Y
coordinates, though,
because IE and Firefox 3 require these.
On this page I test the elementFromPoint()
method.
Click on any element. The textarea should show the element's nodeName.
This is a paragraph in a div with position: static
.
This is a paragraph in a div with position: relative
.
This is another paragraph in a div with position: relative
, but now the paragraph
itself has position: relative
, too.
This is a TD | This is a paragraph in a TD |
|
This is a TD | This is a paragraph in a TD |
|
This is a TD | This is a paragraph with |
Let's NEST!
A div with position: fixed
.
A div with position: absolute
.