working on onload() method of javascript.