JavaScript Tutorial in Hindi #22: JavaScript Window Location | Page Redirection in JavaScript

Veröffentlicht am: 18 Mai 2018
auf dem Kanal: Thapa Technical
51,692
1k

Welcome all, we will see page redirection in javascript.The window.location object can be used to get the current page address (URL) and to redirect the browser to a new page.The location object contains information about the current URL. The location object is part of the window object and is accessed through the window.location property.

Window Location Href
The window.location.href property returns the URL of the current page.
window.location.href;

Window Location Hostname
The window.location.hostname property returns the name of the internet host (of the current page).

Window Location Pathname
The window.location.pathname property returns the pathname of the current page.

Window Location Protocol
The window.location.protocol property returns the web protocol of the page.
Window Location Assign
The window.location.assign() method loads a new document.

Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.

Don't Forget to Follow me on all Social Network,

Instagram Link:   / vinodthapa55  
Facebook Link:   / vinodthapa55  
Twitter Link:   / vb55thapa  
Facebook ThapaTechnical Page Link:   / vinodbahadurthapa  


Auf dieser Seite können Sie das Online-Video JavaScript Tutorial in Hindi #22: JavaScript Window Location | Page Redirection in JavaScript mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Thapa Technical 18 Mai 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 51,692 Mal angesehen und es wurde von 1 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!