JavaScript
// Open popup window
$('a.popup').click(function(){
window.open( this.href, 'Page title', 'width=600, height=650' );
return false;
});
HTML snippet
<a class="popup" href="sample.html">
In order to hide the header and footer in a popup window that opens sample.html
, is it possible to add a specific class name to the <html>
or <body>
elements? This way, I can apply custom CSS rules accordingly. Your assistance would be greatly appreciated!