[Javascript] dom/javascript question regarding Internet Explorer

Lee Bettridge lbettridge at twowaytv.co.uk
Fri Jul 20 09:53:37 CDT 2007


That's exactly what I needed, thanks :)

Isn't it weird though, that you can access it through
 document.title;

And not
 document.getElementsByTagName("TITLE");


on second thoughts, lets not go there...


-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of J. Lester Novros II
Sent: 20 July 2007 15:37
To: [JavaScript List]
Subject: Re: [Javascript] dom/javascript question regarding Internet
Explorer

Lee Bettridge wrote:
> This statement
> 
> var title = document.getElementsByTagName("TITLE").item(0);
> 
> in IE does not return on object but does in firefox, so I guess my
> question is, in IE is the <title/> tag simply inaccessible or
accessible
> in some other Microsoft specific way ?

Just a thought: any reason not to use the document.title property?

l8R lES
-- 
Claiming that [DRM] can ever be made secure [...] is like believing you
can
create a secure bank vault by drawing chalk lines on the pavement,
piling
the money inside and asking customers to "respect these boundaries".
http://www.supermarionation.tv                             - Jeremy
Allison
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
________________________________________________________
Two Way TV is the trading name of Two Way Media Ltd
Company Number: 4904168



More information about the Javascript mailing list