JavaScript: Get the website URL | Document.URL | SadDamniT

Veröffentlicht am: 24 April 2021
auf dem Kanal: CodenGen
267
5

Write a Javascript Program to get the website URL. URL is a property of Document which Return the document location as a string.

In this Tutorial, we wrote a function which is linked with a button on the home page. when user click the button, function will run document.URL and assign it's output to a variable. Later that variable value is displayed with the help of GetElementById() and innerHTML with an empty paragraph on our homepage.


Click the link below to get the source code of this exercise:
https://codepen.io/SaddamAkbar/pen/Po...


#javascript #SadDamniT


Auf dieser Seite können Sie das Online-Video JavaScript: Get the website URL | Document.URL | SadDamniT mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer CodenGen 24 April 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 267 Mal angesehen und es wurde von 5 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!