"Randy Webb" <HikksNotAtHome@aol.com> wrote in message
news:hqOdna_JQPhbKMjfRVn-3A@comcast.com...[color=blue]
> tshad wrote:[color=green]
>> I have some Javascript that is not working at all in IE and works fine in
>> Mozilla.
>>
>> I stripped the page down to nothing where it only calls the function
>> which only does an alert.
>>
>> I don't get the alert and I get an error that says:
>>
>> Object expected
>>
>> What is causing these problems?
>>
>> Here is the code:
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
>> <html>
>> <head>
>> <script language="javascript1.4">[/color]
>
> That line above is walking, living, typed out reason to never use the
> language attribute. Evidently IE ignores that version so it never sees the
> script block. Change it to the preferred (required) type attribute and it
> "works" in IE6:
>
> <script type="text/javascript">
>
> <FAQENTRY>
> Something about the type attribute being required and language attributes
> causing problems in certain browsers? javascript1.4 being a problem in
> IE6.
> </FAQENTRY>
>
> A search of the FAQ for "type=" and "language=" are unfound. Is it covered
> in a Notes page somewhere?[/color]
You're right.
Apparently, you don't need the "type" attribute if you use
language="javascript" and you need the "type" attribute if you use
language=javascript1.4.
I just love consistency.
Thanks,
Tom[color=blue]
>
> --
> Randy
> comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly[/color]