<?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>Moving Windows Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/moving-windows/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/moving-windows/</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>Moving Windows in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/moving-windows-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/moving-windows-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 12 Aug 2021 12:23:47 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Method]]></category>
		<category><![CDATA[Moving Windows]]></category>
		<category><![CDATA[Resizing Windows]]></category>
		<category><![CDATA[Scrolling Windows]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7845</guid>

					<description><![CDATA[<p>Moving Windows moveBy ( ) – This method moves the current window by a specified amount of pixels. Syntax:- window.moveBy(horizontalPixels, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/moving-windows-in-javascript/">Moving Windows 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>Moving Windows</strong></h2>



<p class="wp-block-paragraph">moveBy ( ) – This method moves the current window by a specified amount of pixels.</p>



<p class="wp-block-paragraph"><strong>Syntax:- window.moveBy(horizontalPixels, verticalPixels);</strong></p>



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



<p class="wp-block-paragraph">window – It is the name of the window to move or is called just window if it is the main window.</p>



<p class="wp-block-paragraph">horizontalPixels – It is the number of horizontal pixels to move the window where positive numbers move the window to the right and negative numbers to the left.</p>



<p class="wp-block-paragraph">verticalPixels – It is the number of vertical pixels to move the window where positive number move the window down and negative number up.</p>



<p class="wp-block-paragraph"><strong>Ex:- newWindow.moveBy(200, 200);</strong></p>



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



<p class="wp-block-paragraph">moveTo ( ) – This method moves the window to the specified coordinates.</p>



<p class="wp-block-paragraph"><strong>Syntax:- window.moveTo(x, y);</strong></p>



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



<p class="wp-block-paragraph">window – It is the name of the window to move or is called just window if it is the main window.</p>



<p class="wp-block-paragraph">x – It is the screen co-ordinate on the x-axis to move the window to.</p>



<p class="wp-block-paragraph">y – It is the screen co-ordinate on the y-axis to move the window to.</p>



<p class="wp-block-paragraph"><strong>Ex:- newWindow.moveTo(200, 200);</strong></p>



<p class="wp-block-paragraph"><strong>Resizing Windows</strong></p>



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



<p class="wp-block-paragraph">resizeBy ( ) – This method is used to resize the current window by a certain amount, relative to its current size. </p>



<p class="wp-block-paragraph"><strong>Syntax:- window.resizeBy(width, height);</strong></p>



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



<p class="wp-block-paragraph">window – It is the name of the window to move or is called just window if it is the main window.</p>



<p class="wp-block-paragraph">width – It is the number of width pixels, where positive numbers increase the window and negative numbers decrease.</p>



<p class="wp-block-paragraph">height – It is the number of height pixels, where positive numbers increase the window and negative numbers decrease.</p>



<p class="wp-block-paragraph"><strong>Ex:- newWindow.resizeBy(200, 200);</strong></p>



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



<p class="wp-block-paragraph">resizeTo ( ) – This method is used to resize a window to the specified width and height.</p>



<p class="wp-block-paragraph"><strong>Syntax:- window.resizeTo(width, height);</strong></p>



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



<p class="wp-block-paragraph">window – It is the name of the window to move or is called just window if it is the main window.</p>



<p class="wp-block-paragraph">width – It is an integer representing the new outerWidth in pixels (including scroll bars, title bars, etc).</p>



<p class="wp-block-paragraph">height – It is an integer value representing the new outerHeight in pixels (including scroll bars, title bars, etc).</p>



<p class="wp-block-paragraph"><strong>Ex:- newWindow.resizeTo(200, 200);</strong></p>



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



<p class="wp-block-paragraph">scrollBy ( ) – This method scrolls the document in the window by the given amount.</p>



<p class="wp-block-paragraph">Syntax:- window.scrollBy(x, y); or window.scrollBy(options);</p>



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



<p class="wp-block-paragraph">window – It is the name of the window to scroll or is called just window if it is the main window.</p>



<p class="wp-block-paragraph">x – How many pixels to scroll by, along the x-axis (horizontal). Positive values will scroll to the right, while negative values will scroll to the left</p>



<p class="wp-block-paragraph">y – How many pixels to scroll by, along the y-axis (vertical). Positive values will scroll down, while negative values scroll up</p>



<p class="wp-block-paragraph">Options – It is an object with three possible properties:<br>                top, which is the same as the y-coord<br>                left, which is the same as the x-coord<br>                behavior, which is a string containing one of smooth, instant, or auto; default is auto</p>



<script src="https://gist.github.com/vijaypk376/80f98b46e82513b83ca74a15de75ec7a.js"></script>



<p class="wp-block-paragraph">Note &#8211; For this method to work, the visible property of the window&#8217;s scrollbar must be set to true!</p>



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



<p class="wp-block-paragraph">scrollTo ( ) – This method scrolls to a particular set of coordinates in the document.</p>



<p class="wp-block-paragraph">Syntax:- window.scrollTo(x, y); or window.scrollTo(options);</p>



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



<p class="wp-block-paragraph">window – It is the name of the window to scroll or is called just window if it is the main window.</p>



<p class="wp-block-paragraph">x – It is the pixel along the horizontal axis of the document that you want to be displayed in the upper left.</p>



<p class="wp-block-paragraph">y – It is the pixel along the vertical axis of the document that you want to be displayed in the upper left.</p>



<p class="wp-block-paragraph">options is an object with three possible properties:<br>            top, which is the same as the y-coord<br>            left, which is the same as the x-coord<br>            behavior, which is a string containing either smooth, instant, or auto; default is auto</p>



<script src="https://gist.github.com/vijaypk376/86c5458e800c2bb297f2e77f7c77afe0.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/moving-windows-in-javascript/">Moving Windows 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/moving-windows-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
