|
Posted by Mika on 11/19/07 23:06
"Stevo" <please@spam-me.com> wrote in message
news:fht3gu$ctk$02$1@news.t-online.com...
> Mika wrote:
>>>> Can anyone suggest another way to do this (which doesn't work)?:
>>>> <!--[if IE]></body><![endif]-->
>>> Have you tried using document.write("<\/body>"); ?
>> Apologies, could you put the code in context and in laymen's terms
>> please? Exactly what should we add to make only IE see a </body> command?
>
> I'm not up on using conditional comments, I try to avoid them, but I would
> imagine this would work (using the conditional comments syntax from your
> example because I don't know the syntax):
>
> <!--[if IE]>
> <script type="text/javascript">document.write("<\/body>");</script>
> <![endif]-->
Thanks Stevo, it doesn't seem to work. IE ignores it.
Out of interest why does body have a double-slash "\/" before it?
I wonder if there is another way to say "only if you are IE, close the body
tag here"...
Navigation:
[Reply to this message]
|