Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: new window

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Dallas, Texas
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question new window

    hi

    i know i've seen this answer before, but i can't find it in search.

    how can i change this code to make the button open a new window instead of changing the parent?

    <button onClick="window.location='http://www.tpwd.state.tx.us/park/cedarhil/'" style="background-image:url(fpics/f2back.jpg)"><b>cedar hill sp</b></button>

    thanks!

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    onClick="window.open('http://www.tpwd.state.tx.us/park/cedarhil/','','');"

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Dallas, Texas
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks!


  •  

    Posting Permissions

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