<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_DHTML%2FWindow_Browser%2FLocation</id>
		<title>JavaScript DHTML/Window Browser/Location - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_DHTML%2FWindow_Browser%2FLocation"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_DHTML/Window_Browser/Location&amp;action=history"/>
		<updated>2026-04-04T13:23:14Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_DHTML/Window_Browser/Location&amp;diff=3966&amp;oldid=prev</id>
		<title> в 10:00, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_DHTML/Window_Browser/Location&amp;diff=3966&amp;oldid=prev"/>
				<updated>2010-05-26T10:00:28Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 10:00, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_DHTML/Window_Browser/Location&amp;diff=3967&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_DHTML/Window_Browser/Location&amp;diff=3967&amp;oldid=prev"/>
				<updated>2010-05-26T07:28:37Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==A Document with Anchors==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;html&amp;gt; &lt;br /&gt;
&amp;lt;head&amp;gt; &lt;br /&gt;
&amp;lt;title&amp;gt;location.hash Property&amp;lt;/title&amp;gt; &lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt; &lt;br /&gt;
function goNextAnchor(where) { &lt;br /&gt;
    window.location.hash = where; &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/script&amp;gt; &lt;br /&gt;
&amp;lt;/head&amp;gt; &lt;br /&gt;
&amp;lt;body&amp;gt; &lt;br /&gt;
&amp;lt;a id=&amp;quot;start&amp;quot; name=&amp;quot;start&amp;quot;&amp;gt;Top&amp;lt;/a&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;button&amp;quot; name=&amp;quot;next&amp;quot; value=&amp;quot;NEXT&amp;quot; onclick=&amp;quot;goNextAnchor(&amp;quot;sec3&amp;quot;)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;a id=&amp;quot;sec3&amp;quot; name=&amp;quot;sec3&amp;quot;&amp;gt;Section 3&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;button&amp;quot; name=&amp;quot;next&amp;quot; value=&amp;quot;BACK TO TOP&amp;quot; onclick=&amp;quot;goNextAnchor(&amp;quot;start&amp;quot;)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/body&amp;gt; &lt;br /&gt;
&amp;lt;/html&amp;gt; &lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Extracting the Directory of the Current Document==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;html&amp;gt; &lt;br /&gt;
&amp;lt;head&amp;gt; &lt;br /&gt;
&amp;lt;title&amp;gt;Extract pathname&amp;lt;/title&amp;gt; &lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt; &lt;br /&gt;
function getDirPath(URL) { &lt;br /&gt;
    var result = unescape(URL.substring(0,(URL.lastIndexOf(&amp;quot;/&amp;quot;)) + 1)); &lt;br /&gt;
    return result; &lt;br /&gt;
} &lt;br /&gt;
function showDirPath(URL) { &lt;br /&gt;
    alert(getDirPath(URL)); &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/script&amp;gt; &lt;br /&gt;
&amp;lt;/head&amp;gt; &lt;br /&gt;
&amp;lt;body&amp;gt; &lt;br /&gt;
&amp;lt;form&amp;gt; &lt;br /&gt;
&amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;URL&amp;quot; onclick=&amp;quot;showDirPath(window.location.href)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/form&amp;gt; &lt;br /&gt;
&amp;lt;/body&amp;gt; &lt;br /&gt;
&amp;lt;/html&amp;gt; &lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Jump to a new location==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
&amp;lt;BODY&amp;gt;&lt;br /&gt;
&amp;lt;SCRIPT&amp;gt;&lt;br /&gt;
var password = &amp;quot;&amp;quot;;&lt;br /&gt;
password=&amp;quot;your&amp;quot;;&lt;br /&gt;
if (password != null) {&lt;br /&gt;
   location.href= password + &amp;quot;.html&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;
&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Location property==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;SCRIPT LANGUAGE=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
var isNav4 = (navigator.appName == &amp;quot;Netscape&amp;quot; &amp;amp;&amp;amp; &lt;br /&gt;
parseInt(navigator.appVersion) == 4)&lt;br /&gt;
if (top.location.href == window.location.href) {&lt;br /&gt;
    if (isNav4) {&lt;br /&gt;
        if (window.innerWidth != 0) {&lt;br /&gt;
            top.location.href = &amp;quot;http://www.wbex.ru&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
    } else {&lt;br /&gt;
        top.location.href = &amp;quot;http://www.wbex.ru&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
         &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Methods and Properties of the Location Object==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
/*&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
  Type         Item              Description&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
  Method&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
               reload()          Reloads the current URL in the browser window. &lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
               replace()         Loads the new page passed in the current browser. &lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
  Property&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
               hash              Represents an anchor name in the URL that begins &lt;br /&gt;
                                 with the # character.&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
               host              Represents the hostname and port number of the URL.&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
               hostname          Represents the hostname part of the URL.&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
               href              Represents the complete URL.&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
               pathname          Represents the PATH_INFO part of the URL.&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
               port              Represents the port part of the URL.&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
               protocol          Represents the protocol part of the URL.&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
               search            The search part of the URL, including the ?.&lt;br /&gt;
+------------+----------------+------------------------------------------+&lt;br /&gt;
*/&lt;br /&gt;
           &lt;br /&gt;
         &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>