Forum Moderators: mack
I need the name of individual web pages %title% (?) to appear at the top of a section. When the simple two or three word page title gets changed the top section title will automatically match.
Exactly, how do I do this, please, and what is the precise variable name for the title of a Dreamweaver made page?
Thank you.
If the page name is what you are after then Mack is right, however, if you are after the actual title then you will have to go a different route.
In this case both PHP and JavaScript will both be efficient at this task.
PHP
<?php
$title="The World of Widgets";
echo $title;
?>
JavaScript
Use this in the <head>
<script language="JavaScript">
function title() {
var title = "The World of Widgets"
document.write(title)
}
</script>
Use this where you want the title to show up
<script language="JavaScript">
title()
</script>