Sharon Christine

Sharon Christine

337 Articles Published

Articles by Sharon Christine

Page 3 of 34

Most Frequently Used Linux IPTables Rules with Examples

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 11K+ Views

This article provides a comprehensive collection of IPTables rules that you can use directly for common networking and security tasks. These examples serve as practical templates for configuring IPTables firewall rules to suit your specific requirements. Deleting IPTables or Existing Rules Before building new IPTables rules, clean up all default and existing rules using the flush command: # iptables --flush # iptables -F Setting Default Chain Policies Change the default policy from ACCEPT to DROP for enhanced security: # iptables -P INPUT DROP # iptables -P FORWARD DROP # iptables -P ...

Read More

HTML DOM Input Button disabled Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 235 Views

The HTML DOM Input Button disabled property returns and modifies the value of the disabled attribute of an input button element. When set to true, the button becomes non-interactive and appears grayed out. When set to false, the button is enabled and can be clicked. Syntax Following is the syntax for returning the disabled property − object.disabled Following is the syntax for setting the disabled property − object.disabled = true|false Property Values The disabled property accepts the following boolean values − true − Disables the button, making ...

Read More

HTML DOM Input Button form Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 187 Views

The HTML DOM Input Button form property returns a reference to the form element that contains the input button. This property is read-only and provides access to the parent form of a button element, enabling you to identify which form the button belongs to and access form-level properties or methods. Syntax Following is the syntax for accessing the form property − buttonElement.form Return Value The form property returns a reference to the element that contains the button. If the button is not inside a form, it returns null. Example − Basic ...

Read More

HTML DOM Input Button Object

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 300 Views

The HTML DOM Input Button Object represents an HTML input element with the type attribute set to "button". This object provides programmatic access to button elements, allowing you to create, modify, and interact with buttons dynamically using JavaScript. The Input Button Object is used to create interactive buttons that can trigger JavaScript functions when clicked. Unlike submit buttons, these buttons do not automatically submit forms but instead execute custom JavaScript code. Syntax Following is the syntax to create an Input Button Object dynamically − var newButton = document.createElement("INPUT"); newButton.setAttribute("type", "button"); To access an ...

Read More

HTML DOM History length Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 179 Views

The HTML DOM History length property returns the number of URLs in the browser's session history list for the current window. This includes all pages visited during the current browsing session, including the current page. Syntax Following is the syntax for the History length property − history.length Return Value The history.length property returns an integer representing the total number of entries in the session history stack. This count includes − The current page All previously visited pages in the current tab/window session Pages navigated to using browser back/forward buttons ...

Read More

HTML DOM HTML Object

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 403 Views

The HTML DOM HTML Object represents the element of an HTML document. This object provides access to the root element that contains all other HTML elements on the page, including the and sections. The HTML object is useful for accessing document-wide properties, manipulating the entire document structure, or retrieving all content within the HTML element. It serves as the top-level container for all page elements. Syntax Following is the syntax to access the HTML object using getElementsByTagName() − document.getElementsByTagName("HTML")[0] Alternative syntax using documentElement property − document.documentElement ...

Read More

Why formaction attribute is not working outside of tag?

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 849 Views

The formaction attribute can work outside the tag by using the form attribute to associate external buttons with a specific form. The formaction attribute specifies an alternate action URL for form submission, allowing multiple submit buttons to send data to different server endpoints. How Formaction Works When you submit a form, the browser follows this priority order − First − Check for formaction attribute on the submit button Second − Use the action attribute on the element Default − Submit to the current page if neither is specified Syntax Following is ...

Read More

HTML DOM Input Hidden name Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 211 Views

The HTML DOM Input Hidden name property is used to get or set the value of the name attribute of a hidden input field. Hidden input fields are form elements that are not visible to users but can store data that needs to be submitted with the form. Syntax Following is the syntax for getting the name property − object.name Following is the syntax for setting the name property − object.name = "text" Where object is a reference to the hidden input element, and "text" is the new name value ...

Read More

HTML DOM Input Hidden value Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 362 Views

The HTML DOM Input Hidden value property returns and modifies the content of the value attribute of an input field with type="hidden". Hidden input fields are invisible to users but store data that can be accessed and manipulated using JavaScript. Hidden input fields are commonly used to store temporary data, user session information, or values that need to be submitted with forms without displaying them to users. Syntax Following is the syntax for returning the value − object.value Following is the syntax for modifying the value − object.value = "text" ...

Read More

HTML DOM Input Month defaultValue Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 175 Views

The HTML DOM Input Month defaultValue Property is used to set or return the default value of an input field with type="month". This property represents the initial value that was specified in the HTML value attribute when the page loaded. Syntax Following is the syntax for returning the default value − object.defaultValue Following is the syntax for setting the default value − object.defaultValue = value Here, value is a string representing a month in YYYY-MM format, for example "2019-03" for March 2019. Parameters This property accepts the following ...

Read More
Showing 21–30 of 337 articles
« Prev 1 2 3 4 5 34 Next »
Advertisements