How to customize popup options .. size
I have the following function to create a popup.
function makewindows(html){
child1 = window.open ("about:blank");
child1.document.write(html);
child1.document.close();
}
It works fine but opens a new tab in firefox. I would like to know how to make it an actual popup with a smaller size, etc., separate from the actual window.
+1
a source to share
1 answer
window.open("example.html", "windowName",
"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
See the MSDN documentation window.open or the Mozilla.open documentation for more details.
0
a source to share