Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ Closing a window and displaying a pop up

Posted by: tudsy Jul 4 2019, 06:39 AM

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.Attached File  index.txt ( 12.02k ) Number of downloads: 617

Posted by: Christian J Jul 4 2019, 11:32 AM

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.

Posted by: tudsy Jul 18 2019, 11:10 AM

Hi

Problem solved.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)