1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Javascript: Getting a popup to have address, menu bars

Discussion in 'General Internet' started by CUISTech, 2009/01/22.

  1. 2009/01/22
    CUISTech

    CUISTech Inactive Thread Starter

    Joined:
    2008/10/28
    Messages:
    419
    Likes Received:
    1
    Code:
    <a href= "javascript:void(0)" onclick= "window.open('http://[website address].htm','welcome','width=1000,height=700,toolbar=1,resizable=1,scrollbars=1,left=300') ">
    What's the exact syntax to get menu and address bars when generating popup windows? This is my first foray into javascripting, and I'm using someone else's code, who had designed the site previous to me.

    Is it as simple as menubar=1 and addressbar=1? Unless I misspelled it, that's not giving me the results I want. =\

    I've seen about 6 different ways to do it... Is there a "right" way to script this? Using "1" instead of "yes" for example? (I know they both work... but what's considered 'proper?')
     
  2. 2009/01/23
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400

  3. to hide this advert.

  4. 2009/02/02
    CUISTech

    CUISTech Inactive Thread Starter

    Joined:
    2008/10/28
    Messages:
    419
    Likes Received:
    1
    Never mind. I think I found it!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.