SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Enthusiast remdog's Avatar
    Join Date
    Mar 2002
    Location
    Montreal, Canada
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there more than 1 way to script a pop-up

    Is there more than 1 way to script a pop-up so that it is seen by as many users as possible?

    We have some on our site, and have been testing....and we've found that on 1 pc, our pop-ups don't show, yet those from some other sites do. And it's not because the other sites are on the 'let em through' list, nor because our site is on the 'block em' list.

    So if there is more than 1 way to skin this cat, what is the best way?

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are variations... Could you post a link to an example page?
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  4. #4
    SitePoint Enthusiast remdog's Avatar
    Join Date
    Mar 2002
    Location
    Montreal, Canada
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Kravvitz View Post
    There are variations... Could you post a link to an example page?

    go to www.selectblindscanada.ca, and then close the window--you should see a pop-up asking you if you want to order free samples.

  5. #5
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    K. I get that in IE6 but not in IE7 or Firefox. People find popups generated via window.onunload annoying.

    Popup blockers were created for a reason. I will not help you try to get around them.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  6. #6
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is actually a reason why all browsers have popup-blockers implemented today. Trying to find loopholes in the browsers blocking implementation is not an option.

  7. #7
    SitePoint Enthusiast remdog's Avatar
    Join Date
    Mar 2002
    Location
    Montreal, Canada
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not looking for a way around pop-up blockers. All I am looking for is the best way to code pop-ups for those who either don't have pop-up blockers, or for those who have turned off their pop-up blockers and actually do want to get pop-ups--I certainly don't want to annoy anyone who doesn't want to be annoyed--but for those who are ok with pop-ups, what is the best way to code them?

  8. #8
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Only way to open a popup with JavaScript is by using window.open.

  9. #9
    SitePoint Enthusiast remdog's Avatar
    Join Date
    Mar 2002
    Location
    Montreal, Canada
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there another, and maybe 'better' way using a different langauge?

  10. #10
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No. JavaScript is the behavior layer. "Take it or leave it."

    Most popup blockers don't block window.open() entirely. The pretty much block it from being called by everything except onclick events.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


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
  •