During working on one of my project, i found that style.left does not work with Mozilla, chrome and safari but nicely works on internet explorer.
The code was :
var docStyle = document.getElementById("divAddPartnerAndProjectEntities").style; docStyle.top = e.clientY; docStyle.left = e.clientX-5; docStyle .style.display = "";
var docStyle = document.getElementById("divAddPartnerAndProjectEntities").style; docStyle.top = e.clientY+"px"; docStyle.left = e.clientX-5+"px"; docStyle .style.display = "";
Very Simple right ? 🙂
Leave a Reply