Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem in getting x cordinate value...

2 views
Skip to first unread message

Avnesh Shakya

unread,
Apr 18, 2013, 7:00:47 AM4/18/13
to

hi, my html page is not working.. i am trying to get value of x co-ordinate,but it's showing "undefined" message, when i click on that div.

my body content---

<div id="editinterest" class="eareaofinterest" style='left:200px;' tabindex="20" onblur="funcblur()">
<div class="eexptt" id="expectedtime" onmousedown="expt(this)"></div></br>
<div class="ecmplt" id="completed"></div>
<div style="position:relative;top:8px;">
<a class="small button" style="position:relative;top:18px;left:40px;" onclick="editinterest.style.visibility='hidden'">Done</a>
</div>
</div>

javascript code--

<script>
var x;
function expt(eve)
{
x=eve.pageX;
alert(x);
}
</script>
0 new messages