Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS Standards 2

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Is there a JavaScript standards? like W3C for HTML/XHTML/CSS ?

If so who are they, do they offer a JS validation tool and which browser is more JS compliant as depending on browser seems to effect some commands/methods used eg..
Code:
if (window.attachEvent) {
      do what ever
   } 
   else if (window.addEventListener) {
      do what ever
   }
or the layers vs images etc.. why are there these differences? will there be a standard that ALL browsers conform to?

thoughts anyone.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Why don't W3C set the standards, i assume tags such as onmouseover, out, click etc... are specific for firing JS, so if they incorporate tag attributes into their HTML/XHTML standards which are JS specific, wouldn't following on into setting a JS standard make sense?

might be handy and make writing cross-browser JS alot easier wouldn't you say?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Javascript is used by more than just web browsers, so would be outside the scope of W3C.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top