1
Good guys set up a function to open a popup, and need to put a link inside the popup to be closed. Someone knows how to do this?
My code to open the pop-up
function popup(URL) {
var width = 1024;
var height = 700;
var left = 30;
var top = 50;
window.open(URL, 'janela', 'width=' + width + ', height=' + height + ', top=' + top + ', left=' + left + ', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
I call the link so:
<a onclick="javascript:popup('janela.html')">Link</a>
Inside the window.html file I need to put a link to close the pop-up.