Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18197
| From | Osmo Saarikumpu <osmo@weppipakki.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: What is the best way to call another html file |
| Date | 2013-01-22 10:09 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <kdlhfj$14b$1@speranza.aioe.org> (permalink) |
| References | <kdipqs$8a6$1@dont-email.me> <XnsA14F646294240eejj99@194.109.133.133> <kdj06n$6bq$1@dont-email.me> <XnsA14F6E309EF60eejj99@194.109.133.133> |
On 21.1.2013 11:49, Evertjan. wrote:
> Properties of window.location are:
>
> window.location.href [default, this is a read/write property]
> window.location.hostname [returns the domain name of the web host]
> window.location.path [returns the path and filename of the current
> page] window.location.port [returns the port of the web host (80 or
> 443)] window.location.protocol [returns the web protocol used
> (http:// or https://)]
>
> Methods of window.location are:
>
> window.location.replace('http://cnn.com') [loads & replaces history
> entry] window.location.assign('http://cnn.com') [loads with new
> history entry] window.location.reload() [reloads the page at hand]
>
> Did I miss some?
The following seem to be popular:
window.location.host [returns the host name and port number]
window.location.hash [returns the part of the URL that follows the #
symbol, including the # symbol]
window.location.search [returns the part of the URL that follows the ?
symbol, including the ? symbol]
--
Best wishes, Osmo
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What is the best way to call another html file "Tony" <tony.johansson@inport.com> - 2013-01-21 08:13 +0100
Re: What is the best way to call another html file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-21 09:52 +0100
Re: What is the best way to call another html file "Tony" <tony.johansson@inport.com> - 2013-01-21 10:02 +0100
Re: What is the best way to call another html file brooklynb7 <brooklynb7@gmail.com> - 2013-01-21 01:23 -0800
Re: What is the best way to call another html file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-21 10:55 +0100
Re: What is the best way to call another html file "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-21 10:49 +0100
Re: What is the best way to call another html file Osmo Saarikumpu <osmo@weppipakki.com> - 2013-01-22 10:09 +0200
Re: What is the best way to call another html file Danny <dann90038@gmail.com> - 2013-01-22 12:45 -0800
Re: What is the best way to call another html file Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-01-22 17:42 +0000
csiph-web