I wanted to get the cursor position in my iFrame which is relative to the iframe walls...
Actually we use 'href' attribute in iFrame to tell the content we want in side iframe.
I specified the path to an html page... then I used the below mentioned code
and I was able to get the cursor position in any browser: (IE, Mozilla, Safari).
Normally people say cursor position when they are talking about textareas and textboxes.
They say mouse position when it is the X/Y coordinates on the page.
Your code is a little outdated in how it detects browsers. When coding JavaScript it should be sniffin support for objects,methods and properties that you are going to use.
I visited the link, I got the required information.. but neither my code mentioned above nor the code help in the given link allowing cross browser compatibility...
Below I am specifying all code I am using ... It is running successfully on IE & Safari but not on Mozilla & Netscape.
Please help me to make changes to allow the desired output on all browser.
Details: I am using three files - temp1.html, tooltip.css & tooltipz.html.
temp1.html:
tooltip.css:
tooltipz.html
This entire code is running properly on IE & Safari but not on Mozilla & Netscap...
Please any buddy help me resolve the problem..