You are here: Re: Why this code is invalid? [+stupid=mozilla :P ] « HTML « IT news, forums, messages
Re: Why this code is invalid? [+stupid=mozilla :P ]

Posted by Jonathan N. Little on 11/17/79 11:29

talthen.z-serwera.o2@nospam.pl wrote:
> "Jonathan N. Little" <lws4art@centralva.net>
>
>>No your problem is 'goto' is a JavaScript reserve word!!!
>>
>>JavaScript Reserve Words:
>>
>>abstract, boolean, break, byte, case, catch, char, class, const, continue,
>>debugger, default, delete, do, double, else, enum, export, extends, false,
>>final, finally, float, for, function, goto, if, implements, import, in,
>>instanceof, int, interface, long, native, new, null, package, private,
>>protected, public, return, short, static, super, switch, synchronized,
>>this, throw, throws, transient, true, try, typeof, var, void, volatile,
>>while, with
>
>
> Thanks for the list :]
> However goto is a function and I have goto as a variable. For MSIE and Opera
> it makes the difference and MSIE is the inventor of JavaScript.

Please lookup the meaning of a 'reserve word' in any computer
language...it means that they cannot be use as intentifiers--'cuz their
reserved! That is way the script I wrote changing the name of the input
field from 'goto' to 'notgoto' works!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация