How can I add a Copy Button?

now it works but if we set web viewer visible false it not works maybe problem with web viewer still we can se the web viewer height to 0.1 and width 0.1 and it will be invisible