<?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>events Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/events/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/events/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34:32 +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>How to use Form Handling in javascript</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-use-form-handling-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-use-form-handling-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 13 Aug 2021 12:08:53 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[document object]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[Form Handling]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Method]]></category>
		<category><![CDATA[properties]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7922</guid>

					<description><![CDATA[<p>Form Handling JavaScript provides access to the forms within an HTML document through the Form object known as HTMLFormElement in [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-form-handling-in-javascript/">How to use Form Handling 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>Form Handling</strong></h2>



<p class="wp-block-paragraph">JavaScript provides access to the forms within an HTML document through the Form object known as HTMLFormElement in the DOM. Which is a child of the Document Object.</p>



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



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>Properties</strong></td><td class="has-text-align-center" data-align="center"><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td class="has-text-align-center" data-align="center">accept-charset</td><td class="has-text-align-center" data-align="center">UTF-8</td><td>Specifies the charset used in the submitted form (default: the page charset).</td></tr><tr><td class="has-text-align-center" data-align="center">action</td><td class="has-text-align-center" data-align="center">URL</td><td>Contains a URL that defines where to send the data after submitting the form</td></tr><tr><td class="has-text-align-center" data-align="center">autocomplete</td><td class="has-text-align-center" data-align="center">On (default)<br>Off</td><td>Determines that the browser retains the history of previous values.</td></tr><tr><td class="has-text-align-center" data-align="center">enctype</td><td class="has-text-align-center" data-align="center"></td><td>specifies how the browser encodes the data before it sends it to the server. (default: is url-encoded).</td></tr><tr><td class="has-text-align-center" data-align="center">encoding</td><td class="has-text-align-center" data-align="center"></td><td>Holds the value of the enctype attribute, which usually contains either application/x-www-form-urlencoded value or the multipart/form-data value (in the case of file upload)</td></tr><tr><td class="has-text-align-center" data-align="center">elements[ ]</td><td class="has-text-align-center" data-align="center"></td><td>An array of DOM elements that correspond to the interactive form fields within the form</td></tr></tbody></table></figure>



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



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>Properties</strong></td><td class="has-text-align-center" data-align="center"><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td class="has-text-align-center" data-align="center">length</td><td class="has-text-align-center" data-align="center"></td><td>The number of a form field with a given form tag. Should bt the same as elements.length</td></tr><tr><td class="has-text-align-center" data-align="center">method</td><td class="has-text-align-center" data-align="center">GET (default)<br>POST</td><td>Specifies how to send the form data to a web server. The data can be sent as URL variables, by using the get method or as HTTP post, by using the post method</td></tr><tr><td class="has-text-align-center" data-align="center">name</td><td class="has-text-align-center" data-align="center">name</td><td>Specifies a name used to identify the form</td></tr><tr><td class="has-text-align-center" data-align="center">novalidate</td><td class="has-text-align-center" data-align="center">novalidate</td><td>Specifies that the browser should not validate the form.</td></tr><tr><td class="has-text-align-center" data-align="center">target</td><td class="has-text-align-center" data-align="center">_self (default)<br>_blank<br>_parent<br>_top<br>framename</td><td>Specifies the target of the address in the action attribute</td></tr></tbody></table></figure>



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



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>Method</strong></td><td><strong>Description</strong></td></tr><tr><td class="has-text-align-center" data-align="center">checkValidity ( )</td><td>Returns a true or false value indicating whether or not all the fields in the form are in a valid state.</td></tr><tr><td class="has-text-align-center" data-align="center">reset ( )</td><td>Returns all form fields to their initial state.</td></tr><tr><td class="has-text-align-center" data-align="center">submit ( )</td><td>Submits the form to the URL specified in the form’s action attribute</td></tr></tbody></table></figure>



<h3 class="wp-block-heading"><strong>Events: &#8211;</strong></h3>



<ul class="wp-block-list"><li>onreset</li><li>onsubmit</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-form-handling-in-javascript/">How to use Form Handling 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/how-to-use-form-handling-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Event in Javascript?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-event-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-event-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 12 Aug 2021 08:54:03 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Attributes]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7789</guid>

					<description><![CDATA[<p>What is Event The actions to which JavaScript can respond are called Events. An Event is some notable action to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-event-in-javascript/">What is Event 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>What is Event</strong></h2>



<p class="wp-block-paragraph">The actions to which JavaScript can respond are called Events. An Event is some notable action to which a script can respond.</p>



<ul class="wp-block-list"><li>Clicking an element</li><li>Submitting a form</li><li>Scrolling page</li><li>Hovering an element</li></ul>



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



<p class="wp-block-paragraph">An Event handler is JavaScript code associated with a particular part of the document and a particular event. A handler is executed if and when the given event occurs at the part of the document to which it is associated.</p>



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



<ul class="wp-block-list"><li>onclick</li><li>ondblclick</li><li>onchange</li><li>onblur</li></ul>



<h2 class="wp-block-heading"><strong>Event Binding with HTML Attribute</strong></h2>



<p class="wp-block-paragraph">These bindings are element attributes, such as onclick and on change, which can be set equal to JavaScript that is to be executed when the given event occurs at that object.</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211; &lt;button onclick= “alert(‘Button Clicked’);”>Click Me&lt;/button></strong></p>



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



<h2 class="wp-block-heading"><strong>Event Binding with JavaScript</strong></h2>



<p class="wp-block-paragraph">When we use this approach we can add or remove handlers dynamically as well as it improves the separation between the structure of the document and its logic and presentation.</p>



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



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



<h2 class="wp-block-heading"><strong>Event Binding with JavaScript</strong></h2>



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



<h2 class="wp-block-heading"><strong>Overwriting Event Handler</strong></h2>



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



<h2 class="wp-block-heading"><strong>DOM Event Model</strong></h2>



<p class="wp-block-paragraph">The DOM 2 Event Model specification describes a standard way to create, capture, handle and cancel event in a tree like structure such as an XHTML document’s object hierarchy.</p>



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



<ul class="wp-block-list"><li>Capture Phase</li><li>Target Phase</li><li>Bubbling Phase</li></ul>



<p class="wp-block-paragraph"><strong>addEventListener ( )</strong></p>



<p class="wp-block-paragraph">This method is introduced by DOM2, used to engage an event handler in a page.</p>



<p class="wp-block-paragraph"><strong>Syntax:-<br>Object.addEventListener(event, handler, capturePhase);</strong></p>



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



<ul class="wp-block-list"><li>Object is the node to which the listener is to be bound.</li><li>Event is a string indicating the type of event.</li><li>Handler is the function that should be called when the event occurs.</li><li>capturePhase is a Boolean indicating whether to use Bubbling (false) or Capture (true). This is optional. If you omit there is false by default.</li></ul>



<p class="wp-block-paragraph"><strong>Ex:-</strong><br><strong>btn.addEventListener(“click”, show, false);</strong></p>



<h2 class="wp-block-heading"><strong>Why we should use addEventListener ( ) ?</strong></h2>



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



<h2 class="wp-block-heading"><strong>Why we should use addEventListener ( )</strong></h2>



<ul class="wp-block-list"><li>It allows you to bind multiple handlers to an object for the same event.</li></ul>



<ul class="wp-block-list"><li>It enables you finer-grained control of the phase when the listener is activated (Capture or Bubbling).</li></ul>



<ul class="wp-block-list"><li>It works on any DOM element, not just HTML elements.</li></ul>



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



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



<h2 class="wp-block-heading"><strong>DOM Event Flow/ Event Propagation</strong></h2>



<p class="wp-block-paragraph">The DOM 2 Event Model specification describes a standard way to create, capture, handle and cancel event in a tree like structure such as an XHTML document’s object hierarchy.</p>



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



<ul class="wp-block-list"><li>Capture Phase</li><li>Target Phase</li><li>Bubbling Phase</li></ul>



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



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



<p class="wp-block-paragraph">DOM events pass an Event object as an argument to handlers. This object contains extra information about the event that occurred.</p>



<p class="wp-block-paragraph">Ex:- a<strong>ddEventListener(“click”, function(e) { });</strong></p>



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



<ul class="wp-block-list"><li>stopPropagation() &#8211;  Prevents further propagation of the current event in the capturing and bubbling phases.</li></ul>



<p class="wp-block-paragraph">     <strong>Syntax:- e.stopPropagation();</strong></p>



<ul class="wp-block-list"><li>stopImmediatePropagation() &#8211; Prevents other listeners of the same event from being called.</li></ul>



<p class="wp-block-paragraph">     <strong>Syntax:- e.stopImmediatePropagation();</strong></p>



<ul class="wp-block-list"><li>preventDefault()  &#8211; The Event interface&#8217;s preventDefault() method tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.</li></ul>



<p class="wp-block-paragraph">     <strong>Syntax:- e.preventDefault();</strong></p>



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



<ul class="wp-block-list"><li>mousedown – It fires when mouse button is pressed down.</li><li>mouseup – It fires when the mouse button is released.</li><li>click – It fires when something is clicked. mousedown, mouseup and click events fires in sequence.</li><li>dblclick – It fires when something is clicked twice in rapid succession. mousedown, mouseup, click, mousedown, mouseup, click, and dblclick events fires in sequence.</li><li>mouseenter – It fires when a mouse starts to hover over some element. NO bubble.</li><li>mouseleave – It fires when a mouse exits while hovering over some element. No bubble.</li><li>mouseover – It fires when mouse is hovering over some element.</li><li>mouseout – It fires when mouse leaves from hovering over some element.</li><li>mousemove – It fires when the mouse moves.</li><li>contextmenu – It fires when mouse right button is clicked.</li></ul>



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



<ul class="wp-block-list"><li>focus – It fires when an element gains focus, such as selecting a form field. No Bubble</li></ul>



<ul class="wp-block-list"><li>blur – It fires when element loses focus, such as moving away from a form field. No Bubble</li></ul>



<ul class="wp-block-list"><li>focusin – It fires just as an element is about to gain focus.</li></ul>



<ul class="wp-block-list"><li>focusout – It fires just as an element loses focus and just before the blur event.</li></ul>



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



<ul class="wp-block-list"><li>keydown – It fires as a key is pressed down.</li></ul>



<ul class="wp-block-list"><li>keypress – It fires after a key is pressed down (after keydown). It only works with printable characters.</li></ul>



<ul class="wp-block-list"><li>keyup – It fires as the key is released.</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-event-in-javascript/">What is Event 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/what-is-event-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to use Visibility Property in CSS?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-use-visibility-property-in-css/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-use-visibility-property-in-css/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 29 Jul 2021 13:00:01 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[collapse]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[property]]></category>
		<category><![CDATA[visibility]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7179</guid>

					<description><![CDATA[<p>This property is used to specify whether or not an element is visible. We can set this property to visible [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-visibility-property-in-css/">How to use Visibility Property in CSS?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">This property is used to specify whether or not an element is visible. We can set this property to visible (default), hidden or collapse.</p>



<h2 class="wp-block-heading">hidden &#8211; </h2>



<p class="wp-block-paragraph">The element is invisible not removed.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="475" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/image-21-1024x475.png" alt="" class="wp-image-7180" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/image-21-1024x475.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/image-21-300x139.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/image-21-768x356.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/image-21-1536x712.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/image-21.png 1645w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">collapse-</h2>



<p class="wp-block-paragraph">This value is only used for table elements. collapse removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content. If collapse is used on other elements, it will be treated as “<strong>hidden</strong>”.</p>



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



<p class="wp-block-paragraph"><strong>p { visibility: hidden;}</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://magnusbenoni.com/content/images/2015/11/Comparison-4.png" alt="Hiding an Element with CSS: Display vs Visibility vs Opacity | Magnus Benoni"/></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-visibility-property-in-css/">How to use Visibility Property in CSS?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-use-visibility-property-in-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
