Results 1 to 3 of 3

Thread: Open page in new window ( complete muppet)

  1. #1
    Join Date
    Apr 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Open page in new window ( complete muppet)

    Has anyone got the code to open a page in a new window. There are planty of codes out there but i dont know how to fit them into my html.

    <img border="0" src="img/mainareawh1.gif" width="320" height="183" >

    ^^ thats what the code looks like in the <body> section. I want to huperlink off the image to a page in a new window. Any help appreciated.

  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

    Since you are asking in the HTML section, I will give you the HTML answer:

    HTML Code:
    <a href="whatever.htm" target="_blank">Link Text or Image Tag</a>
    Unfortunately, even something as innocent as this can be blocked by pop up blockers, and you have even less control over the characteristics of the new window than with javascript.

    With javascript, you can tailor many things about your new window. However, this is no guarantee against being blocked or having your settings overridden.

    A script like the one I believe I mentioned to you before is superior because it can only be blocked by disabling javascript entirely - something few people do. It will degrade well if blocked and has other advantages.
    - John
    ________________________

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

  3. #3
    Join Date
    Apr 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    cheers for that, it works finally which is good

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
  •