Your plugin is very simple and works great. However, the only way to dismiss the popup is by clicking off of it, AND this does not work on mobile devices like the iphone. There is no way to dismiss it on a mobile device, unless I provide a link to my home page embedded in the text of the popup. And it might be confusing for some users that don’t know to click off the window on regular desktop browsers.
How can I add an close button to the top right corner? Just a small “X” box would suffice.
Hi rhdri and thank you for your feedback.
Sorry i didn’t try it on an iPhone that’s an annoying problem !
The truth is i didn’t want the plugin to have any “style or look” so that’s why i didnt add a cross or button 🙁
I’ll update the plugin next week for sure and let you know. In the meantime you can add directly in the popup content a link with a css class “closepopup” to bind the close event. Something like : <a href="#" class="closepopup">Close window</a>
or even <a href="#" class="closepopup">X</a>