I can't remember how to get the WSS site title name dynamically using a JavaScript. Right now I'm doing this
<div id="wssTitle"><SharePoint:ProjectProperty Property="Title" runat="server"/></div>
then on JavaScript I'm doing
<script>document.write(document.all["wssTitle"].innerText);</script>
It works but I need a direct approach. Please advice.