Jump to content

replace for getElementsByClassName, and cross broswer for offsetX


Nati323

Recommended Posts

hey, i use the offsetX propeti on the mouse event object

and i want to know in which broswers its supported?

 

also, is there anyway to get the elements with some classname withos getElementsByClassName method?

Link to comment
Share on other sites

i read the first link that you gave when i search in google, but the meaning of:

 

 

This is implemented very inconsistently between broswers

they dosent say which broswers support, they only say that the imlementetion is inconsistently, whats the meaning of that?

 

thanks for the other link.

Link to comment
Share on other sites

According to the MDN page, only Firefox supports it (that information is given by Mozilla though, so it might be biased). Inconsistent means that different browsers might all have that property available, but they calculate the value differently.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...