<html>
<head>
<script type="text/javascript">
function WaitFor() {
var x = screen.width / 2 - 120;
var y = screen.height / 2 - 100;
var waitfor = document.getElementById("waitfor");
var innerText = '<div ;
}
</script>
</head>
<body>
<input type="button" onclick="WaitFor();" value="ok">
<div ></div>
</body>
</html>