DarkElite Posted March 19, 2007 Share Posted March 19, 2007 Notably a hastle to deal with...I've found that the onClick parameter of any tag in HTML doesn't work in FireFox (specifically its use to initiate a JavaScript function). I'm simply wondering if there is a way to work around my necessity to use this paramenter or a way to get it to work across all browsers... Link to comment Share on other sites More sharing options...
AeroCoder Posted March 19, 2007 Share Posted March 19, 2007 The most common reason is that "onClick" is NOT the proper syntax for any Javascript event attribute. The proper method is to simply have it in all lowercase, as with many other coding languages including Actionscript.Try using all lowercase for the attributes, and see if that works. Link to comment Share on other sites More sharing options...
DarkElite Posted March 19, 2007 Author Share Posted March 19, 2007 The "onclick" is being used as a parameter in an HTML tag (TD), not as an object being referrenced in JS.And I had also tried playing around with the cases of the letters and nothing changed in FF.Funny thing is I've also got onmouseover and out events running, which work fine, but the browser doesn't seem to be accepting any of the onclick events for any of the tags.I suppose the code itself would be best to look at... I'll put it up later today for examination. Link to comment Share on other sites More sharing options...
justsomeguy Posted March 19, 2007 Share Posted March 19, 2007 Which tags are you trying this with? Tags that are layered might not be working correctly, the click might be received by a higher-up element instead of a lower one. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now