How to copy URL on button click?

后端 未结 5 577
孤城傲影
孤城傲影 2020-12-16 06:34

I am trying to copy the current page URL in the text area on button click. Somehow I have tried but is not working. http://www.w3schools.com/code/tryit.asp?filename=FAF25LWI

5条回答
  •  甜味超标
    2020-12-16 06:57

    Another solution, no extra html code is needed:

    
    

提交回复
热议问题