Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Malformed JavaScript commands' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Malformed JavaScript commands
Authored by: OSX_Apprentice on Oct 16, '03 10:00:12PM

I have had similar problems in IE 5.2 many times. Often, the cause is as easy as undisciplined developers using malformed JavaScript commands in the HREF tags. In most cases, their leaving out the required semicolon at the end of the command is rendering the link useless.

Some browsers (mostly on the Win platform) are more forgiving than others which is probably why the developers don't notice.

Here is the command provided in the preceding posting:
"javascript:doLogin()"

It should have a trailing semicolon for it to be a proper JavaScript command, and thus look like:
"javascript:doLogin();"

As far as I know, the only thing the user can do about these problems is to notify the site's administrators. No quick client side fix exists.



[ Reply to This | # ]