Tuesday, March 13, 2012

Setting Title with Javascript....

IS it possible to set the content of the title tag using Java script.
Thanks,
SmithWhy 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
"Smith Sonian" <SSonian@.hotmail.com> wrote in message
news:Oftv4igmEHA.1652@.TK2MSFTNGP09.phx.gbl...
> IS it possible to set the content of the title tag using Java script.
> Thanks,
> Smith
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

"Mark" <pyedubois@.hotmail.com> wrote in message
news:OsuWxygmEHA.744@.TK2MSFTNGP10.phx.gbl...
> 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>
>
>
> "Smith Sonian" <SSonian@.hotmail.com> wrote in message
> news:Oftv4igmEHA.1652@.TK2MSFTNGP09.phx.gbl...
> > IS it possible to set the content of the title tag using Java script.
> > Thanks,
> > Smith

0 comments:

Post a Comment