PDA

View Full Version : Nov prozor u Internet Exploreru



Webby
08.01.2002., 11:01
Da li znate kako da napravim da kad se klikne na link otvori se novi prozor, bez toolbara, i kome ne moze da se menja velicina.

sofri
09.01.2002., 13:02
<script language="javascript">
<!-- Hiding script from old browsers
var version = 0;
if (navigator.userAgent.indexOf("Mozilla/4.0") != -1) version = 4;
else if (navigator.userAgent.indexOf("Mozilla/3.0") != -1) version = 3;
else if (navigator.userAgent.indexOf("Mozilla/2.0") != -1) version = 2;
else if (navigator.userAgent.indexOf("MSIE") != -1) version = 1;
else version = 0;
if (version == 3 || version == 4)
function WindowOpen()
{window.open("neka_strana.htm","extra","toolbar=0,location=0,directories=0,status=0,menuba r=0,scrollbars=no,resizable=no,close_button=yes,Wi dth=400,Height=330,screenX=400,screenY=450,top=0,l eft=0'");}
//-->
</script>

i posle samo pozoves ovu funkciju kad zelis, npr.
<body onLoad="WindowOpen()">

Bane-Nis
11.01.2002., 18:33
poseti www.dynamicdrive.com :cool: