SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2007
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Method to avoid window pop blocker

    Hi,

    I'm using the following code to open a new window when clicking on a link but the window pop blockers seem to always block the new window that I'm try to open.

    <a href="http://www.mysite.com" target="_blank">Mini Storage</a>

    I'll appreciate if someone could suggest or provide a link where I can read more about a method to use to avoid window pop blockers.

    Thanks in advance.

    jw

  2. #2
    Non-Member
    Join Date
    Oct 2008
    Location
    Banned
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That has to deal with your internet firewall I believe.

  3. #3
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,702
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    You can't and shouldn't circumvent pop-up blockers. They're there for a reason. Besides, I am yet to see a legitimate reason to use pop-ups.
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!

  4. #4
    Non-Member
    Join Date
    Oct 2008
    Location
    Banned
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  5. #5
    SitePoint Zealot
    Join Date
    Jun 2007
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    THANK YOU BBoardX that's exactly what I needed. Have a bless Holiday Season!

  6. #6
    Non-Member
    Join Date
    Oct 2008
    Location
    Banned
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem. Keep in mind that javascript can be disabled.

  7. #7
    SitePoint Zealot
    Join Date
    Jun 2007
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're right, in that case I would have to odd more code or what could done to try to go around of it

  8. #8
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,785
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You can't open a popup in my browser no matter what you do. My browser is set to open new sites in a new tab and new pages from an existing sites in the current tab which is the way I want it and fortunately there is nothing any web page owner can do about it because it is MY browser and works the way I want it to and I say NO popups allowed so that's what it does.

    Everyone else can configure their browser to work the way they want and ignore your popup requests as well. You can only open a popup if the person visiting your site allows it.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  9. #9
    SitePoint Zealot
    Join Date
    Jun 2007
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for taking time to answer, The link below shows it can be done:

    http://pageresource.com/jscript/jwinopen.htm

  10. #10
    SitePoint Evangelist Ed Seedhouse's Avatar
    Join Date
    Aug 2006
    Location
    Victoria, B.C. Canada
    Posts
    592
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by absolutejw View Post
    Thank you for taking time to answer, The link below shows it can be done:
    Actually, it shows just the opposite.

    The user can choose to turn javascript off, for a start. A savvy user can disable javascript on particular pages but not on other pages.

    Even if you find a way (you won't) someone will then write a browser purposely to defeat that way. The user has a computer at his disposal, wheras all you have is a web page. The match is unequal and you will always lose.
    Ed Seedhouse

  11. #11
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,785
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by absolutejw View Post
    Thank you for taking time to answer, The link below shows it can be done:
    That link proves no such thing.

    As I said I have my browser set to use tabs in the current window for all new page requests so what you want is completely ignored and the page opens the way I want. I never see popup windows EVER regardless of the code because my browser either blocks them or converts them into opening in the existing tab or a new tab depending on what is most appropriate.

    It doesn't matter what code you use, you can NEVER open a popup in my browser because I told it not to let you.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •