I wrote code below it open me a new window and show current time but I want it will show it in same window and chnge each second
here is my code (i think I must use setInterval function to change time each second but if I put the call in body it's still have problem
<img onmouseover="myFunction()" />
</table>
<script type="text/javascript">
function myFunction()
{
var n=new Date();
//alert("document.write(now.getHours() + "."+now.getMinutes()+"."+now.getSeconds())");
document.write(n.getHours()+":"+n.getMinutes()+":"+n.getSeconds());
}
</script>