+ 1
You have to write the JavaScript code in a function and call that function from html either by using onload event in body tag OR by simply defining a button and attaching onclick event to it.
3rd Oct 2017, 11:46 AM
Ankit Agrawal
Ankit Agrawal - avatar