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

preview_player
Показать описание
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:

#javascript #SadDamniT
Рекомендации по теме
Комментарии
Автор

How to get other subpages of particular site and save all subpage url to array and get random link to visit on clicking button

pratikdangol
visit shbcf.ru