window location in JavaScript

preview_player
Показать описание
Link for all dot net and sql server video tutorial playlists

Link for slides, code samples and text version of the video

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

In this video we will discuss the use of Location object.

[html]
[head]
[script]
// If JavaScript is disable this code will not execute and the user reamains on this
// page and he gets to the see the message that JavaScript is disabled.
[/script]
[/head]
[body]
[h1]It seems that you have disabled JavaScript. Please enable JavaScript.[/h1]
[/body]
[/html]

At this point

1. One for users with JavaScript
2. Another for users without JavaScript

If you have JavaScript enabled, you will be redirected to JavaScript enabled website.
If you have JavaScript disabled, you will not be redirected and stay with the website which works without JavaScript.

Some of the useful properties of the location object

[script type="text/javascript"]
[/script]

Output :
Рекомендации по теме
Комментарии
Автор

Though I am not qualified enough to compare, but I would say it is more effective tutorial than any other available in Youtube. Thanks!

bansom
Автор

Thank You Venkat,

Your Vedio's are making us to learn more and work happly

deepthikrishna
Автор

Thank you sir, still now we are learning from your video...

gulshanarya
Автор

Best Place To Learns Something New and Updated ....:) <3 love you

harshpatel
Автор

Which video did you explain call, bind ? TIA

malavikaa