I’m trying to find <body onload="function();"> and replace it with <body> on onClick event.
Any suggestions how this could be done?
Thank you.
UPD.
Sorry for an unclear question. Crozin answered my question, I was just trying to remove onload attribute.
Do you want to search and replace String or DOM Element? If string then use this:
If you want to delete
onloadattribute from DOM element use this: