Hi,<br>in ASP code, how can I know the page title that I'm currenly in?<br>In other words, can I define a parameter (srtTitle) and store the title string in it (strTitle=title)?<br>Thanks<br>Eyal
Dear Eyal,<br><br>If the 'title' entity you are referring to is the contents of the documents <title></title> tags, the answer is no.<br><br>That entity only exists in the DOM which in turn only exists in the browser. ASP is a server side process therefore there is no browser and therefore no DOM from which to obtain the 'document' object nor it's 'title' element.<br><br>You could inverse your question though.<br><br><% var sTitle = "My Server Side Title"; %><br><title><%=sTitle%></title><br><br>Hope this helps<br>-pete
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.