JavaScript » FAQ

Jak wyświetlić okienko Pop-Up

<html>
<head>
 <script type="text/javascript">
 <!--
   function popup(url) 
   {
     window.open(url,'','width=400,height=400');
   }
 //-->
 </script>
</head>
<body>
 <a href="javascript:popup('strona.html')">strona.html</a><br />
 <a href="javascript:popup('zdjecie.jpg')">zdjecie.jpg</a><br />
 <a href="javascript:popup('http://onet.pl')">Onet.pl</a>
</body>
</html>