Thanks You.
But could you tell me why I was not able to add event handler in html. Basically something like
I had added the javascript function in javascript tools prior to doing this. It did not allow me to save the html till I removed this onclick ☺