This discussion is archived
1 Reply Latest reply: Jun 17, 2011 5:24 AM by fac586 RSS

How to display the value of a javascript variable in a html region ?

Fanny__ Newbie
Currently Being Moderated
Hello,

I need to display my page title or name in a html region.
I added a script in the <title> section of the template header... :
(thanks Andy : Get page name from page attributes ?
<script type="text/javascript">
var pageTitle = '#TITLE#';
</script>
... so I can use it in a javascript variable.

But now I don't know how to display it in a html syntax..

Thanks!
Fanny

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points