I have a function in my script that gives me an error. The function purpose is to copy text from static panel(not textbox or input) with onClick event.
Uncaught
select() method is used to select the contents of text fields. it won't work on h1 element.
select()
h1