Help - Search - Members - Calendar
Full Version: Closing a window and displaying a pop up
HTMLHelp Forums > Programming > Client-side Scripting
tudsy
Hi guys!

I have written some css code to create a pop up after the user closes a window in the browser. I don't know what I am doing wrong?


Any help will be greatly be appreciated.Click to view attachment
Christian J
CODE
<div class='popupCloseButton'>Close</div>
        <p> Wait! <br/> Dont go away-Buy some art for yourself and friends/family!
              <a href='https://wwww.ecovib2d.com.au/WORKFROMHOME/YOURART/yourart.php'>Buy Art!</a></p>
    </div>

Is this the popup? I generally recommend against opening popups, in particular when the user tries to leave the page.

If you still want to make one, please create a minimal sample page showing the problem --the current page contains lots of other possibly irrelevant content, like ten javascripts and and unparsed PHP include.

You should also try to fix the HTML syntax errors, such as the SCRIPT and META elements before the HEAD section.
tudsy
Hi

Problem solved.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.