Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Sharon Christine
Page 3 of 34
Most Frequently Used Linux IPTables Rules with Examples
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 MoreHTML DOM Input Button disabled Property
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 MoreHTML DOM Input Button form Property
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 MoreHTML DOM Input Button Object
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 MoreHTML DOM History length Property
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 MoreHTML DOM HTML Object
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 MoreWhy formaction attribute is not working outside of tag?
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 MoreHTML DOM Input Hidden name Property
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 MoreHTML DOM Input Hidden value Property
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 MoreHTML DOM Input Month defaultValue Property
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