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 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    target="_blank" in JS

    Hi,

    Is it possible to replicate the ahref target="_blank" in javascript?

    Could work something like this:

    < JS Code >

    <a href="*.html" onclick='javascript:OpenTarget();'>Open Win</a>

    I just need a way to reference a new window opening across the whole site. I can't use window.open command because of pop stoppers.

    Thanks,

    D

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,048
    Thanks
    0
    Thanked 251 Times in 247 Posts
    You want a new window but at the same time you're wary of popup blockers?

    You can avoid opening a new window by using an iframe inside a positioned div to display html pages inside another page.


  •  

    Posting Permissions

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