Код:

<html>
<head>
<title>123</title>
<script language="JavaScript">
function openWin() { *
myWin= open("", "displayWindow", "width=500,height=400,status=yes,toolbar=yes,menubar=yes"); * * *
myWin.document.open();
myWin.document.write("<html><head><title>123456");
myWin.document.write("</title></head><body bgcolor=#44AAFF>"); *
myWin.document.write("test"); *
myWin.document.write("</body></html>"); * *
myWin.document.close(); * }
</script>
</head>
<body>
<A HREF="#" onClick="openWin()">Открыть</a>
</body>
</html>
Если я правильно понял
Ну тут еще доработать надо "под тебя"
