Have simple link popup
Description
Have a popup with an hrml page
Set up
First, paste this code (html) wherever you want
- Code:
<a href="http://www.google.com" class="popup">link</a>
And this is the javascript code:
- Code:
$(function(){
$('body').on('click','a.popup',function(){
window.open($(this).attr('href'),"nom_popup","menubar=no, status=no, scrollbars=yes, width=500, height=300");
return false;
});
});
The code will open the popup a.popup

Customize the tutorial
You can edit link with what you see and google.com with the link of the popup

Technical problems
![]() | The tutorial was tested on this forum and with the browser Google Chrome; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting. Thanks, the staff |
![]() | For every problem or question please, contact us in the section Support for the tutorials, The staff will answer you as soon as it is possible... |
Friendly,
The team of the Forum of Codes.