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
 
Back
Top