Код за отваряне на подпрозорец

DeToX

Registered
Трябва ми код който да отваря под прозорец на определени от мен размери например 400х400
 
Код:
<html>

   <head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
      <script type="text/javascript">
         function openPopup(url,width,height){
            window.open(url,'popup','toolbar=0,location=0,directories=0, statusbar=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
         }
      </script>

   </head>

   <body>
<a href="javascript: openPopup('http://mail.bg',300,100);">клик</a>

   </body>

</html>
Това 300, 100 са ти пикселите.

Кодът е взет от форумс@дата.бг
 
Код:
<html>

<head>
<script language="JavaScript" type="text/JavaScript">
var neww;
  function azxfds(axzfds,axcfds,acxfds)
    {neww=window.open(axzfds,axcfds,acxfds);
neww.window.focus();
}
//-->
</script>



<title></title>

</head>

<body onLoad="azxfds('http://data.bg','emagi','width=400,height=400')">

</body>

</html>
 

Back
Горе