Saturday, April 30, 2011

JavaScript Reserved Words


You should avoid using these reserved words and keywords as function or variable names as JavaScript has reserved these words for its own use.
JavaScript Reserved Words
breakcontinuedoforimportnewthisvoid
casedefaultelsefunctioninreturntypeofwhile
commentdeleteexportiflabelswitchvarwith


Java Keywords (Reserved by JavaScript)
abstractimplementsprotected
booleaninstanceOfpublic
byteintshort
charinterfacestatic
doublelongsynchronized
falsenativethrows
finalnulltransient
floatpackagetrue
gotoprivate





ECMAScipt Reserved Words
catchenumthrow
classextendstry
constfinally
debuggersuper


Other JavaScript Keywords
alertevalLinkouterHeightscrollTo
AnchorFileUploadlocationouterWidthSelect
AreafindLocationPackagesself
argumentsfocuslocationbarpageXoffsetsetInterval
ArrayFormMathpageYoffsetsetTimeout
assignFramemenubarparentstatus
blurframesMimeTypeparseFloatstatusbar
BooleanFunctionmoveByparseIntstop
ButtongetClassmoveToPasswordString
calleeHiddennamepersonalbarSubmit
callerhistoryNaNPluginsun
captureEventsHistorynavigateprinttaint
CheckboxhomenavigatorpromptText
clearIntervalImageNavigatorprototypeTextarea
clearTimeoutInfinitynetscapeRadiotoolbar
closeinnerHeightNumberreftop
closedinnerWidthObjectRegExptoString
confirmisFiniteonBlurreleaseEventsunescape
constructorisNanonErrorResetuntaint
DatejavaonFocusresizeByunwatch
defaultStatusJavaArrayonLoadresizeTovalueOf
documentJavaClassonUnloadrouteEventwatch
DocumentJavaObjectopenscrollwindow
ElementJavaPackageopenerscrollbarsWindow
escapelengthOptionscrollBy

No comments:

Post a Comment