<html>
<head>
<script language="JavaScript">
var day = new Date();
function openWin() {
myWin= alert(day.getMilliseconds()+ ' ' + day.getSeconds());
}
</script>
</head>
<body>
<form>
<input type="button" value="Открыть новое окно" onClick="openWin()">
</form>
</body>
</html>