Sets or gets the element's link to an external site.
When the element is clicked, the browser navigates to the external link
location.
The link
property attempts to properly encode the URL value that
you set. For example, .../some page
is encoded to .../some%20page
.
However, some URLs do not have one unambiguous encoding. In those cases
it is up to you to encode the URL to reflect your intentions. Because of
these situations, it is a best practice to always encode URLs before you
set them as the value of the link
property. Regardless of how you set
the link
property, when you get its value, it returns an encoded URL.