Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you retrieve a page title and assign it to a variable?

Status
Not open for further replies.

MahendraMahey

Programmer
May 13, 2003
13
GB
Does anyone know if you can assign the page title to a variable?

This doesn't seem possible:

title=document.title
 
try var strTitle = document.title or document.frames(0).title
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top