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 5 of 5
  1. #1
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts

    quick help needed with basic pop up windo

    a html page that has an image "button.gif" which is the link > when clicked a new window with say a width of 200 and height of 400 pops up (no bar, menu scroll etc) this new pop up is "more_info.html"

    how can i do this? simply

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    <A HREF="thepage.htm" target="popup" onClick="window.open('thepage.htm','popup','width=200,height=400'); return false">click click</a>
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks,

    what is the "return false" for? what does this do?

  • #4
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    <A HREF="thepage.htm" target="popup" onClick="window.open('thepage.htm','popup','width=200,height=400'); return false">click click</a>

    the bit in bold, will cause a new window to open. this is there for people with browsers that can't handle javascript ( or have javascript turned off ). for people who do have javascript capable browsers, there's the onclick bit. but now, the javascript and non javascript parts will fight with each other. the "return false" part, will turn off the non javascript part ( cancels the normal action of a link ), leaving only the javascript working. so, even if people don't have browsers that can handle javascript, they can still get to the next page.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #5
    mat
    mat is offline
    Regular Coder
    Join Date
    Jul 2002
    Posts
    199
    Thanks
    0
    Thanked 0 Times in 0 Posts
    nice.


  •  

    Posting Permissions

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