Wednesday, September 22, 2010

Using the value of <title> throughout the document?

Hello,

How can I use the value contained in the <title> in other places in
the document.
All of the posts that I can find want to explain that the <title> is
not the <h1>, I know that.
I would just like to reuse the value of the <title>.

<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>GWT Application</title>
<meta http-equiv="content-type"
content="text/html;
charset=UTF-8">
<link id="application-css"
type="text/css"
rel="stylesheet"
href="Application.css">
<script type="application/javascript"
src="application/application.nocache.js">
</script>
</head>

<body>
<!-- How can I get the value of <title> to be used for the
<h1> -->
<!-- or any other place else that I would like to use
it? -->
<h1>I would like this to end up being:GWT Application</h1>
<!-- I would like this to happen automagically, not
replace. -->
</body>
</html>


Thanks,

Raney

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment