Is it possible to assign the page title to a variable?
NO!!
ASP has no interaction with the code (HTML). This portion of a page is interpruted by the browser, NOT the server.
The answer in the vbsctip forum was document.title returns the value.
dim str
str = document.title client side coding
what are you trying to do with this value. Is this ASP or vbscript you are scripting?
if you need to the server to know add the value to a form and submit the page or redirect it so the server is called again.
_________________________________________________________ $str = "sleep is good for you. sleep gives you the energy you need to function";
$Nstr = ereg_replace("sleep","coffee",$str); echo $Nstr;
I have tried doing this but it doesn't work, may be I am doing something wrong. I am using Vbscript by the way and thank you for your response on the other forum.
Could you give us an example with code that works.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.