<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Location Object Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/location-object/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/location-object/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>History Object and Location Object in javascript?</title>
		<link>https://www.scmgalaxy.com/tutorials/history-object-and-location-object-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/history-object-and-location-object-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 12 Aug 2021 13:01:57 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[History Object]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Location Object]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[property]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7850</guid>

					<description><![CDATA[<p>History Object The History object is a read-only array of URL strings that shows where the user has been recently. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/history-object-and-location-object-in-javascript/">History Object and Location Object in javascript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>History Object</strong></h2>



<p class="wp-block-paragraph">The History object is a read-only array of URL strings that shows where the user has been recently.</p>



<p class="wp-block-paragraph"><strong>Syntax: &#8211;</strong></p>



<p class="wp-block-paragraph"><strong>window.history.property</strong></p>



<p class="wp-block-paragraph">window.hi<strong>story.method</strong></p>



<h2 class="wp-block-heading"><strong>Property</strong></h2>



<ul class="wp-block-list"><li>length – It returns the number of URLs in the history list.</li></ul>



<h2 class="wp-block-heading"><strong>Methods</strong></h2>



<ul class="wp-block-list"><li>back ( ) – It loads the previous URL in the history list.</li></ul>



<ul class="wp-block-list"><li>forward ( ) – It loads the next URL in the history list.</li></ul>



<ul class="wp-block-list"><li>go ( ) – It access a particular item in the history list relative to the current position. Using a negative value moves to a history item previous to the current location, while a positive number moves forward in the history list.</li></ul>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading"><strong>Location Object</strong></h2>



<p class="wp-block-paragraph">This is used to access the current location (URL) of the window. The Location object can be both read and replaced, so it is possible to update the location of a page through scripting. Location object is a property of Window.</p>



<p class="wp-block-paragraph"><strong>Syntax:-</strong></p>



<p class="wp-block-paragraph"><strong>window.location.property</strong></p>



<p class="wp-block-paragraph"><strong>window.location.method</strong></p>



<h2 class="wp-block-heading"><strong>Properties</strong></h2>



<ul class="wp-block-list"><li>hash – The part of the URL including and following the # symbol.</li><li>host – The hostname and port number.</li><li>hostname – hostname</li><li>href – entire URL</li><li>pathname – Path relative to the host.</li><li>port – Port Number</li><li>protocol – Protocol of URL</li><li>search – The part of the URL including and after the ?</li></ul>



<h2 class="wp-block-heading"><strong>Methods</strong></h2>



<ul class="wp-block-list"><li>assign(URL) – It changes the location of current page with the passed in URL.</li><li>reload( ) – Reload the current page.</li><li>replace (URL) – Replaces the current page with the given URL in history. As it is replaced in history, it won’t be possible to access the current page with back/forward.</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/history-object-and-location-object-in-javascript/">History Object and Location Object in javascript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/history-object-and-location-object-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
