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
  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Posts
    191
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open Link in popup Window Question

    Hi I was fiddling around with this script: http://www.javascriptkit.com/script/cut174.shtml and I am trying to get the hyperlink to open in a popup window, or at the very least a new page and I can't quite get it.

    Any help is much appreciated.

    Thanks!

    Code:
    <a href="javascript:linkrotate(document.mygallery.picture.selectedIndex)" onMouseover="window.status='';return true"></a>

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,576
    Thanks
    80
    Thanked 4,497 Times in 4,461 Posts
    Forget that code. Inappropriate for a popup.

    Do you want the popup to be *JUST* the image? Or do you want it to be an HTML page that has the image as PART of it??

    If JUST the image, it's absolutely trivial:
    Code:
    <a href="javascript:window.open('myUncle.jpg','POPUP','height=400,width=200');">My Uncle</a>
    Naturally, you would want to size the height & width to match the image.

  • #3
    Regular Coder
    Join Date
    Jul 2007
    Posts
    191
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah it is an image, thanks so much OP!


  •  

    Posting Permissions

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