SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: onLoad pop-up

  1. #1
    SitePoint Enthusiast RSBomber's Avatar
    Join Date
    Oct 2005
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onLoad pop-up

    I know this is poor design, but my client wants to pop-up a message to users when they visit the site. I have been unsuccessful in my attempts to talk them out of it. With that being said, I thought I would reach out to SitePoint users to see if someone knows a better way to acheive this type of behavior (e.g., less obtrusive, standards-compliant, cookies, etc.). Any help/suggestions would be greatly appreciated.

    Thanks.

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,824
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Display the ad as an animated overlay within the page itself
    eg. http://javascript.about.com/library/blflyad.htm

    This gets around the fact that popups called from the onload function never get displayed by browsers where there is a popup blocker running.
    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
  •