<script type="text/javascript"><!--
function popwin(imgurl, imgwidth, imgheight)
{
imgpop = window.open("", "imgpop", "resizable=no,width=" + imgwidth + ",height=" + imgheight + ",scrollbars=no");
imgpop.document.write("<HTML>\n<HEAD><TITLE>" + imgurl + "</TITLE></HEAD>\n");
imgpop.document.write("<BODY topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>\n");
imgpop.document.write("\t<a href='javascript: window.close()'><IMG SRC='" + imgurl + "' border='0'></a>\n");
imgpop.document.write("</BODY>\n</HTML>\n");
return false;
}
// --></script>
<a onclick="return popwin('images/senne.jpg', '496', '496');">Click me to see senne.jpg picture</a>
Originally posted by AppMan
People who put pop up ads on their web-sites are very bad people.
Originally posted by AppMan
People who put pop up ads on their web-sites are very bad people.
Originally posted by bootedbear
The first parameter of the window.open() method can be the URL of the HTML (or JSP or whatever) page that you want to load into the window.
<a href="www.thinkhybrid.fr.st" target="_blank">Click here to open my homepage in a new standard window !</a>
I would not use the window.open() function simply to open a URL in a new window. I'd use the target=blank method to do so: