Forum Moderators: open
Thanks.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Playing with Windows 04.14.04</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
var win_num=new Array();
var win_cnt=0;
function winBld(){
var stack_xy=win_cnt*20+50
win_num[win_cnt]=window.open("","win"+win_cnt,"left="+stack_xy+"px,top="+stack_xy+"px,height=200px,width=200px");
win_num[win_cnt].document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"'+
'"http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Untitled</title>'+
'<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"></head>'+
'<body><a href="javascript:opener.winBld();">Fire away</a></body></html>');
win_num[win_cnt].document.close();
win_cnt++;
}
function winKill(){
var l=win_num.length;
for(var i=l-1;i>=0;i--)win_num[i].close();
}
//-->
</script>
</head>
<body onunload="winKill();">
<div><a href="javascript:winBld();">Fire one</a></div>
</body>
</html>
<script type="text/javascript">
function adopen()
{
window.open("yourad.htm", "ad1" , "height=xx, width=yy")
}
</script>
and then the link looks like this:
<a href="yourpage" onClick="adopen()">Click</a>
you can also use an image instead of a html file!
then the window.open would look like this:
window.open("yourad.jpg", "ad1" , "height=xx, width=yy")
a window opened like this will only have the three main buttons (minimize,maximize,close).
for many other properties i'd recommend you search the internet! you could try this page for example! [mozilla.org...]
Thanks.