Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Get the title using JavaScript in SharePoint V2

  Asked By: Ronald    Date: Dec 20    Category: Sharepoint    Views: 3157

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.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Ariana Christensen     Answered On: Dec 20

Well I just did.
<script>document.write(document.all["onetidTitle"].innerText);</script>
It worked.

 
Didn't find what you were looking for? Find more on Get the title using JavaScript in SharePoint V2 Or get search suggestion and latest updates.




Tagged: