Welcome to WebmasterWorld Guest from 107.20.75.63

Forum Moderators: open

Message Too Old, No Replies

Pop-up window and title

How do I get a title in a JS pop-up?

     
8:51 pm on Jul 10, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:June 13, 2002
posts:108
votes: 0


I have a JS pop-up window on one page which has 25 different links. I would like to put a html title in so that the actual page file is not shown in the window.

How do I go about putting a title tag around the JS?

9:49 pm on July 10, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


I'm not sure what you want to accomplish, so please bear with me if my answers miss the mark a bit.

A pop-up window displays whatever title tag is in the HTML document that it loads. So that spot (the title bar of the pop-up window) is handled in the html doc that loads.

Or are you hoping to control the title attribute that shows on mouseover, before the pop-up launches? If that's the goal, you can write:

<a href="poppage.html" onClick="popupFunction();return false" title="Whatever You Want">Link Text</a>

8:41 am on July 11, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:June 13, 2002
posts:108
votes: 0


Spot on - thank you