Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18197

Re: What is the best way to call another html file

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From Osmo Saarikumpu <osmo@weppipakki.com>
Newsgroups comp.lang.javascript
Subject Re: What is the best way to call another html file
Date Tue, 22 Jan 2013 10:09:38 +0200
Organization Aioe.org NNTP Server
Lines 31
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>
NNTP-Posting-Host d55Tx+bASd9qxcM7p3rJ8A.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
X-Antivirus-Status Clean
X-Notice Filtered by postfilter v. 0.8.2
X-Antivirus avast! (VPS 130121-1, 22.01.2013), Outbound message
Xref csiph.com comp.lang.javascript:18197

Show key headers only | View raw


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


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