Predmet:Novi prozor
PreuzmiIzvorni kôd (HTML):
<script language="JavaScript">
function openWin(){
<!--froma u javi-->
var bar = 'directories=no,location=no,menubar=no,status=no';
bar += ',titlebar=no,toolbar=no';
var opcija = 'scrollbars=no,width=400,height=200,resizeable=no';
var myFeatures = bar + ',' + opcija;
var procitaj = 'Proba forme.'
var newWin = open('', 'myDoc', myFeatures);
newWin.document.writeln('
<form>');
newWin.document.writeln('
<table>');
newWin.document.writeln('
<tr valign=TOP><td>');
newWin.document.writeln('
<textarea cols=45 rows=7 wrap=SOFT>');
newWin.document.writeln(procitaj + '
</textarea>');
newWin.document.writeln('
</td></tr>');
newWin.document.writeln('
<tr><td>');
newWin.document.writeln('
<input type=BUTTON value="zatvori"');
newWin.document.writeln(' onClick="window.close()">');
newWin.document.writeln('
</td></tr>');
newWin.document.close();
newWin.focus();
}
<b>Kliknite na sljedeu tipku da biste otvorili novi prozor:
</b>
<input type=BUTTON value="Open" onClick='openWin()'>
Podrska samo putem foruma, jer samo tako i ostali imaju koristi od toga.