Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • HTML Tutorial
  • HTML Exercises
  • HTML Tags
  • HTML Attributes
  • Global Attributes
  • Event Attributes
  • HTML Interview Questions
  • HTML DOM
  • DOM Audio/Video
  • HTML 5
  • HTML Examples
  • Color Picker
  • A to Z Guide
  • HTML Formatter
Open In App

HTML DOM Node isSupported() Method

Last Updated : 13 Jun, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

The isSupported() method in HTML DOM is used to check the specified feature is supported by the specified node or not. This method is not supported by many browsers. It returns true if the feature is supported else it returns false. 

Syntax:

node.isSupported(feature, version)

Note: This method has been DEPRECATED and is no longer recommended.

Parameters Used :

  • feature: It is a required parameter and used to defines the feature to check it is supported or not.
  • version: It is an optional parameter which defines the version of the feature to check if is supported.

Below program illustrates the Node isSupported() method in HTML DOM: 

Example: This example check if the feature Core, version 2.0, is supported for the <button> element or not. 

html
<!DOCTYPE html> <html>  <head>      <title>          HTML DOM Node isSupported() method     </title>  </head>  <body>     <h1>GeeksforGeeks</h1>          <h2>Node isSupported() method</h2>          <p>         Check feature Core XML DOM Level 2 is         supported for the button element or not     </p>      <button onclick = "myGeeks()">         Click Here!     </button>      <p id = "GFG"></p>    <script>       function myGeeks() {         var item = document.getElementsByTagName("BUTTON")[0];         var x = item.isSupported("Core", "2.0");         document.getElementById("GFG").innerHTML = x;       }   </script> </body>  </html>    

Output: Before Click on the button:

  

After click on the button:

  

Supported Browsers: The browser supported by Node isSupported() method are listed below:

  • Internet Explorer 9.0
  • Safari

S

Shubrodeep Banerjee
Improve
Article Tags :
  • Web Technologies
  • HTML
  • HTML-DOM
  • HTML-Methods

Similar Reads

    HTML DOM Style textDecoration Property
    The HTML DOM Style textDecoration property is used to set one or more decorations for a text. We can specify one or more text decorations for a text separated by spaces. It returns the textDecoration property that is given to the text. SyntaxIt returns the textDecoration property. object.style.textD
    2 min read
    HTML | DOM TouchEvent targetTouches Property
    The TouchEvent targetTouches property is a read-only property and used for returning an array of Touch objects. It returns one object for each finger that is touching the current target element. Syntax : event.targetTouches Below program illustrates the TouchEvent targetTouches property : Example: F
    1 min read
    HTML | DOM UiEvent detail Property
    The UiEvent detail property is used for returning a number with details about an event. The UiEvent detail property returns number which indicates the current click count when used on onclick and ondblclick whereas when used on onmousedown and onmouseup, it returns a number which indicates the curre
    1 min read
    HTML | DOM Style cssFloat Property
    The style cssFloat property in HTML DOM is used to set or returns the horizontal alignment of element. This property allows an element to float right or left side of the parent body with rest of the elements wrapped around it. Syntax: It returns the cssFloat property.object.style.cssFloatIt is used
    2 min read
    HTML | DOM Script Object
    The DOM Script Object is used to represent the HTML <script> element. The script element is accessed by getElementById(). Properties: async: It is used to specify the script is executed asynchronously. charset: It is used to specify the character encoding used in an external script file. defer
    2 min read
    HTML | DOM Style textShadow Property
    The style textShadow property in HTML DOM is used to set the shadow effects for text. We can set more than one shadow effects by using this property. This property can also return the shadow effects of a text. Syntax: It returns the textShadow property.object.style.textShadowIt used to set the textS
    2 min read
    HTML DOM MouseEvent pageY Property
    The MouseEvent pageY property is a read-only property and used for returning the vertical coordinate of the mouse pointer when an event has triggered. Syntax :event.pageYReturn Value: It returns a number which represents the vertical coordinate of the mouse pointer in pixels. Below program illustrat
    1 min read
    HTML | DOM Style animationDirection Property
    The animationDirection property is used to set or return the animation direction. This property will have no effect if the animation is set to place only once. Syntax: It returns the animationDirection Property.object.style.animationDirection;It is used to set the animationDirection Property.object.
    3 min read
    HTML | DOM Storage key() Method
    The DOM Storage key() Method is related to the Storage object and is used to return the name of the key with the specified index. Storage object can be either a localStorage or sessionStorage Object. Syntax: Local storage:localStorage.key(index)Session storage:sessionStorage.key(index) Parameters: I
    1 min read
    HTML | DOM Style opacity Property
    The Style opacity property in HTML DOM used to set opacity level for an element. Opacity level defines the transparency level where value 1 represents not transparent, 0.5 represents 50% transparency and 0 represents completely transparent.It also returns opacity level of an element. Syntax: It retu
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences