I am trying to get the document title so I can display it in the body section of a page.
<title>This is the name of the document</title>
Here's my javascript:
<script type="text/javascript">
document.getElementById.title="doc_title";
document.write("This is the " + doc_title);
</script>
I don't think I have the correct elements because it doesn't display the "doc_title" Also, wasn't sure if this could be done with some html.
Thanks for your help.



Reply With Quote


Bookmarks