WEB RESOURCES: ♥ Fonts ♥ Special Characters ♥ CSS to JS ♥ Reserved JS Names
Question: What reserved words are there in JavaScript?> Answer: Reserved words of the JavaScript langauge are listed below. (Some of these words are actually used in the Java language, and are reserved in JavaScript for compatibility purposes or as possible extensions.) When choosing names for your JavaScript variables, avoid these reseved words! abstract else instanceof switch boolean enum int synchronized break export interface this byte extends long throw case false native throws catch final new transient char finally null true class float package try const for private typeof continue function protected var debugger goto public void default if return volatile delete implements short while do import static with double in super In addition to the above reserved words, you'd better avoid the following identifiers as names of JavaScript variables. These are names of client-side objects, methods, or properties in Netscape Navigator or Internet Explorer: alert hidden outerWidth all history packages anchor image pageXOffset anchors images pageYOffset area isNaN parent array java parseFloat assign JavaArray parseInt blur JavaClass password button JavaObject pkcs11 checkbox JavaPackage plugin clearTimeout innerHeight prompt clientInformation innerWidth prototype close layer radio closed layers reset confirm length screenX crypto link screenY date location scroll defaultStatus Math secure document mimeTypes select element name self elements navigate setTimeout embed navigator status embeds netscape String escape Number submit eval Object sun event offscreenBuffering taint fileUpload onblur text focus onerror textarea form onfocus top forms onload toString frame onunload unescape frames open untaint frameRate opener valueOf function option window getClass outerHeight