Log in

View Full Version : How to name the new window?



IanMarlowe
07-23-2005, 05:20 AM
opening a page in a new window:
<a href="www.google.com"
target="_blank">www.google.com</a>

Hi, I forgot how to name a pop-up window. anybody know how?

jscheuer1
07-23-2005, 06:51 PM
I usually just stand there and say:

You're Fred!

or:

You're Alice!

Doesn't seem to work though. I don't think you can do that in HTML. There are ways to do it in javascript. The most common is using the name field when creating a new window:

window.open('somepage.htm','somename','height=300, width=200')Even more access to and control of the new window can be achieved if you equate it with a variable when you create it:

var myWin=window.open('somepage.htm','somename','height=300, width=200')

Twey
07-23-2005, 06:54 PM
Maybe you should hold a naming ceremony.
"I dub thee Johnny!"