<?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>Parameter Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/parameter/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/parameter/</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>What is a window object in JavaScript? What are its properties?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-a-window-object-in-javascript-what-are-its-properties/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-a-window-object-in-javascript-what-are-its-properties/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 12 Aug 2021 11:46:19 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Method]]></category>
		<category><![CDATA[Parameter]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[window object]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7816</guid>

					<description><![CDATA[<p>Window Object Window object represents the browser’s window or potentially frame, that a document is displayed in. As long as [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-a-window-object-in-javascript-what-are-its-properties/">What is a window object in JavaScript? What are its properties?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Window Object</strong></h2>



<ul class="wp-block-list"><li>Window object represents the browser’s window or potentially frame, that a document is displayed in.</li><li>As long as a browser window is open, even if no document is loaded in the window, the window object is defined in the current model in memory.</li><li>All global JavaScript variables, functions and objects automatically become members of the window object.</li></ul>



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



<p class="wp-block-paragraph">It is used to provide some information to users.</p>



<p class="wp-block-paragraph"><strong>Type of Dialog box:-</strong></p>



<ul class="wp-block-list"><li>Alert</li><li>Confirm</li><li>Prompt</li></ul>



<h2 class="wp-block-heading"><strong>alert ( ) Method</strong></h2>



<p class="wp-block-paragraph">This Window object’s method is used to display data in the alert dialog box. alert really should be used only when you truly want to stop everything and let the user know something.</p>



<p class="wp-block-paragraph">Syntax:- window.alert( ) or alert ( )</p>



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



<h2 class="wp-block-heading"><strong>confirm ( ) Method</strong></h2>



<p class="wp-block-paragraph">This Window object’s method is used to display a message for a user to respond to by pressing either an OK button to agree with the message to a Cancel button to disagree with the message. It returns true on OK and false on Cancel.</p>



<p class="wp-block-paragraph">Syntax:- window.confirm( ) or confirm ( )</p>



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



<h2 class="wp-block-heading"><strong>prompt ( ) Method</strong></h2>



<p class="wp-block-paragraph">Window object’s method prompt() can be used to get input from the user, named prompt. The prompt( ) method displays a dialog box that prompts the visitor for input.</p>



<p class="wp-block-paragraph">Once the prompt function obtains input from the user, it returns that input. If the user press the cancel button in the dialog or close box, a value null will be returned.</p>



<p class="wp-block-paragraph">Syntax: &#8211; prompt(text, defaultText)</p>



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



<h2 class="wp-block-heading"><strong>open ( ) Method</strong></h2>



<p class="wp-block-paragraph">The open( ) method creates a new secondary browser window, similar to choosing New Window from the File menu. It returns a Window object representing the newly-created window. If the window couldn&#8217;t be opened, the returned value is instead null.</p>



<p class="wp-block-paragraph">Syntax: &#8211; window.open (URL, name, features, replace)</p>



<p class="wp-block-paragraph">URL – URL indicates the document to load into the window. If no URL is specified, a new window with about: blank is opened</p>



<p class="wp-block-paragraph">Name – Specifies the target attribute or the name of the window. The following values are supported:</p>



<p class="wp-block-paragraph">_blank &#8211; URL is loaded into a new window. This is default<br>_parent &#8211; URL is loaded into the parent frame<br>_self &#8211; URL replaces the current page<br>_top &#8211; URL replaces any framesets that may be loaded</p>



<h2 class="wp-block-heading"><strong>open ( ) Method</strong></h2>



<p class="wp-block-paragraph">Syntax: &#8211; window.open (URL, name, features, replace)</p>



<p class="wp-block-paragraph">Features – It is a comma-delimited string that lists the features of the window.</p>



<p class="wp-block-paragraph">Replace – It indicates whether or not the URL specified should replace the window’s contents. This would apply to a window that was already created. Value can be true/false.</p>



<script src="https://gist.github.com/vijaypk376/1db29e62013fd73212425b33aade7de1.js"></script>



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



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>Feature Parameter</strong></td><td class="has-text-align-center" data-align="center"><strong>Value</strong></td><td class="has-text-align-center" data-align="center"><strong>Example</strong></td></tr><tr><td class="has-text-align-center" data-align="center">alwaysLowered</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">alwaysLowered=yes</td></tr><tr><td class="has-text-align-center" data-align="center">alwaysRaised</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">alwaysRaised=no</td></tr><tr><td class="has-text-align-center" data-align="center">centerscreen</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">centerscreen=yes</td></tr><tr><td class="has-text-align-center" data-align="center">chrome</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">chrome=yes/true</td></tr><tr><td class="has-text-align-center" data-align="center">close</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">close=no</td></tr><tr><td class="has-text-align-center" data-align="center">dialog</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">dialog=yes</td></tr><tr><td class="has-text-align-center" data-align="center">dependent</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">dependent=yes</td></tr><tr><td class="has-text-align-center" data-align="center">z-lock</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">z-lock=yes</td></tr><tr><td class="has-text-align-center" data-align="center">hotkeys</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">hotkeys=yes</td></tr></tbody></table></figure>



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



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>Feature Parameter</strong></td><td class="has-text-align-center" data-align="center"><strong>Value</strong></td><td class="has-text-align-center" data-align="center"><strong>Example</strong></td></tr><tr><td class="has-text-align-center" data-align="center">location</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">location=no</td></tr><tr><td class="has-text-align-center" data-align="center">menubar</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">menubar=no</td></tr><tr><td class="has-text-align-center" data-align="center">minimizable</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">minimizable=no</td></tr><tr><td class="has-text-align-center" data-align="center">modal</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">modal=yes</td></tr><tr><td class="has-text-align-center" data-align="center">personalbar</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">personalbar=yes/true</td></tr><tr><td class="has-text-align-center" data-align="center">resizable</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">resizable=no</td></tr><tr><td class="has-text-align-center" data-align="center">scrollbars</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">scrollbars=no</td></tr><tr><td class="has-text-align-center" data-align="center">status</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">status=no</td></tr><tr><td class="has-text-align-center" data-align="center">titlebar</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">titlebar=yes</td></tr></tbody></table></figure>



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



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>Feature Parameter</strong></td><td class="has-text-align-center" data-align="center"><strong>Value</strong></td><td class="has-text-align-center" data-align="center"><strong>Example</strong></td></tr><tr><td class="has-text-align-center" data-align="center">toolbar</td><td class="has-text-align-center" data-align="center">yes/no</td><td class="has-text-align-center" data-align="center">toolbar=yes</td></tr><tr><td class="has-text-align-center" data-align="center">top</td><td class="has-text-align-center" data-align="center">pixel value</td><td class="has-text-align-center" data-align="center">top=20</td></tr><tr><td class="has-text-align-center" data-align="center">height</td><td class="has-text-align-center" data-align="center">pixel value</td><td class="has-text-align-center" data-align="center">height=200</td></tr><tr><td class="has-text-align-center" data-align="center">width</td><td class="has-text-align-center" data-align="center">pixel value</td><td class="has-text-align-center" data-align="center">width=200</td></tr><tr><td class="has-text-align-center" data-align="center">innerHeight</td><td class="has-text-align-center" data-align="center">pixel value</td><td class="has-text-align-center" data-align="center">innerHeight=200</td></tr><tr><td class="has-text-align-center" data-align="center">innerWidth</td><td class="has-text-align-center" data-align="center">pixel value</td><td class="has-text-align-center" data-align="center">innerWidth=200</td></tr><tr><td class="has-text-align-center" data-align="center">outerHeight</td><td class="has-text-align-center" data-align="center">pixel value</td><td class="has-text-align-center" data-align="center">outerHeight=200</td></tr><tr><td class="has-text-align-center" data-align="center">outerWidth</td><td class="has-text-align-center" data-align="center">pixel value</td><td class="has-text-align-center" data-align="center">outerWidth=200</td></tr><tr><td class="has-text-align-center" data-align="center">left</td><td class="has-text-align-center" data-align="center">pixel value</td><td class="has-text-align-center" data-align="center">left=20</td></tr></tbody></table></figure>



<h2 class="wp-block-heading"><strong>close ( ) Method</strong></h2>



<p class="wp-block-paragraph">Once a window is open, the close ( ) method is used to close it. It closes the current window or the window on which it was called. This method is only allowed to be called for windows that were opened by a script using the window.open() method. It is often used together with open ( ) method.</p>



<p class="wp-block-paragraph">Syntax: &#8211; window.close ( )</p>



<script src="https://gist.github.com/vijaypk376/d6cf9f008ced687a2981606f3a685dae.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-a-window-object-in-javascript-what-are-its-properties/">What is a window object in JavaScript? What are its properties?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-a-window-object-in-javascript-what-are-its-properties/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
