Results 1 to 3 of 3

Thread: How to name the new window?

  1. #1
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to name the new window?

    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?
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:
    Code:
    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:
    Code:
    var myWin=window.open('somepage.htm','somename','height=300, width=200')
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Maybe you should hold a naming ceremony.
    "I dub thee Johnny!"
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •