Setting Title with Javascript....

  • Thread starter Thread starter Smith Sonian
  • Start date Start date
S

Smith Sonian

IS it possible to set the content of the title tag using Java script.
Thanks,
Smith
 
Why noy just use asp.net?

Sub Page_Load

Dim strTitle as String
If someexpression then
strTitle = "Some Title"
Else
strTitle = "Some Other Title"
End If
End Sub

Do your title tag like this:

<title><%=strTitle%></title>
 
After page post back activity eventhough I change the string value it is not
reflecting.
That the issue with the below method. Infact the current code works in this
way only.
Thanks,
Smith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top