hi,
im trying to open a Javascript window and write content into it without having to load another page.
this is my script so far,
i dont know what is wrong?HTML Code:<head>
<title>popups javascript</title>
<script type=text/javascript>
function popitup2() {
newwindow2=window.open('','name','height=200,width=150');
var tmp = newwindow2.document;
tmp.write('<html><head><title>popup</title>');
tmp.write('<script type=text/javascript>');
tmp.write('var d=new Date(); document.write(d.getHours()+":"+d.getMinutes());');
tmp.write('</script></head><body><p>this is once again a popup.</p>');
tmp.write('</body></html>');
tmp.close();
}
</script></head>
<body>
<form>
<input type="button" onClick="popitup2()" value="POP!">
</form>
<p onClick="popitup2()">CLICK ME TOO!</p></body>
and
iam wondering if this is the better way to do it[prev. content: only few lines]. it's also possible to do it in easier way, please share
thanks

