Forum Moderators: open

Message Too Old, No Replies

Title bar of window being called

         

rhf123

3:15 pm on Nov 13, 2003 (gmt 0)

10+ Year Member



Hey all,

If I use window.open(http://www.yahoo.com) for example, to launch a new window, is there a way to control the title bar of that new window so I customize it or does it have to be via frames for this to happen?

Thanks in advance!

DrDoc

4:04 pm on Nov 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

The window title can be changed through:
windowname.title

birdbrain

4:11 pm on Nov 13, 2003 (gmt 0)



Hi there rhf123,

Welcome to these forums,
You can customize your new window by adding features
to window.open() thus...


window.open('http://www.yahoo.com','yahoo','top=0,left=0,width=800,
height=600,toolbar=no,status=no,location=no,scrollbars=no')

birdbrain

rhf123

4:42 pm on Nov 13, 2003 (gmt 0)

10+ Year Member



thanks for the info guys but to use windowname.title, don't i have to place the code in the page itself?

for example, say i wanted to have a link to Yahoo! where i opened a new window with www.yahoo.com but the title bar said "Yahoo is bad." Is this a possibility?

dcrombie

5:26 pm on Nov 13, 2003 (gmt 0)



JS security means that you can't change the elements in pages that belong to another domain. You could try opening a window that contains a frameset with the target site in a single frame. Be careful though - people have been sued for less ;)