Open In App
Related Articles

HTML DOM Node isSupported() Method

Improve Article
Save Article
Like Article

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. 


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. 


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

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

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 13 Jun, 2023
Like Article
Save Article
Similar Reads
Related Tutorials