in that function they used "mytimer()". so diplaying present time, but i need to add my content in that div, i added my own content inside div by removing mytimer(), but not refresing that div so how can and where should i write Utrivedi??
When you want to refresh the div content ?
If you want to make a refresh(change content of the div) when the user click a button, just attach your function at onclick event of that button.(onclick = "your_function()").