Jump to content
GIGN Forum

Logs


dimka62
 Share

Recommended Posts

Tātad es dabūju javascript kodu kurš atver noteiktu lapu uzspiežot uz pogas, bet kā lai es viņu pārveidoju lai viņs atver noteikta izmēra logu piem. 400x350

Kods

<html>
<head>
<script type="text/javascript">
function open_win() 
{
window.open("http://adrese");
}
</script>
</head>

<body>
<form>
<input type=button value="Open Window" onclick="open_win()">
</form>
</body>

</html>

Link to comment
Share on other sites

Sry vairs tomēr nevajag, atradu ko man vajag var taisīt ciet.

Ja kādam vajag tad kods ir šāds

<html>
<head>
<script type="text/javascript">
function open_win()
{
window.open("http://adrese","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=350");
}
</script>
</head>

<body>
<form>
<input type="button" value="Open Window" onclick="open_win()">
</form>
</body>

</html>

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...