The idea is very simple but I can’t implement it; when I clicked in a certain area of ​​the site, the browser’s address bar stood out for an academic copy of the link. Is it possible to implement this on js? Already a day I read javascript tutorials maybe you can help me.

  • one
    Probably it will be easier to immediately send the address of the current page to the clipboard than to select the line. - Alex Chermenin
  • I agree with you so he certainly simplifies the task, but I would like to achieve the selection of the address bar - Karma05

1 answer 1

As far as I know, javascript does not have access to the browser => select the line does not work.

The correct answer was suggested to you in the comments - just copy the current URL to the clipboard.

  • Thank you for your time. - Karma05