How to get current Page URL using JavaScript

preview_player
Показать описание
Today we will discuss
how to get current Page URL using JavaScript

To get a current URL
it will return below values.
hash
host
hostname
href
origin
pathname
port
protocol

If my requirement is to get full URL
Then I will write

If my requirement is to get only current page
then I have to write

If you have any doubt related this video
Рекомендации по теме
Комментарии
Автор

can we get the links of all open tabs in our window

FirstLove-sidy
visit shbcf.ru