Hi @mayank.sharma,
You cannot use onload on h1 tag. Onload does not support that. The following are the tags supported by onload function.
Supported HTML tags:
body, frame, frameset, iframe, img, input, link, script and style.
Let me know in case you need any other information.