On 31 déc 2007, 10:36, Max <maxh.is.h... (AT) gmail (DOT) com> wrote:
Quote:
Two questions:
1. How do I set the title of a document using CSS (preferred) or XSL
(if that's how it has to be done) |
Hello Max,
Everyone who answered you has given you a correct answer: you can not
set the title of a document (or the content of any DOM node) with CSS.
You can do this with javascript.
<title>Old title</title>
(...)
<body onload="document.title = 'New title';" ...>
Not tested.
Quote:
2. How can I get an attribute value? For example, if I have the tags
tag attr="1">...<tag attr="498">, how can I use the value of attr? |
Good question, although your choice of the "use" verb makes it
difficult to answer you.
Internet Explorer 6 and Internet Explorer 7 have bugs regarding their
implementation of the DOM methods
hasAttributes() is not supported
http://www.gtalbot.org/BrowserBugsSe...esSupport.html
attributes[] as a NamedNodeMap object is incorrectly implemented
http://www.gtalbot.org/BrowserBugsSe...entation..html
getAttribute() is incorrectly implemented
Attribute nightmare in IE
http://tobielangel.com/2007/1/11/att...ightmare-in-ie
If we knew exactly what you are trying to achieve, to accomplish in a
reduced demo/test case (preferably on a web accessible webpage/URL),
then we would all be able to suggest, propose concrete measures.
Regards, Gérard