Cool Javascript
06-02-2004, 01:15 PM
I am aware that there is a statement that opens a new window for the viewer, in which you can specify the height, width etc, but I cannot remember what the actual statement is. Could someone who knows please tell me?
avatarbilbo
06-02-2004, 01:22 PM
in the <head>:
<script language=JavaScript type="text/javascript">
function newWin(loca,name,spec){
window.open(loca,name,spec)
}
</script>
then where the link is you want to open into a new window:
<a href="javascript:newWin('YOURPAGE.html','','scrollbars=no,width=600,height=400')">......</a>
(you can specify the scrollbars... and i believe put some other stuff in there as well...)