Skip to content
Related Articles

Related Articles

HTML | DOM Input Radio defaultChecked Property

View Discussion
Improve Article
Save Article
Like Article
  • Difficulty Level : Basic
  • Last Updated : 17 Oct, 2019

The DOM Input Radio defaultChecked Property in HTML DOM is used for returning the default value of the checked attribute. It returns a true if the radio button is checked by default otherwise it returns false.



Below Program illustrates how to return the Property.

<!DOCTYPE html>
        body {
            text-align: center;
        h1 {
            color: green;
      HTML DOM Input Radio default Checked Property
    <form id="myGeeks">
        Radio Button:
        <input type="radio" 
    <button onclick="GFG()">
    <p id="GFG"
        function GFG() {
            // Accessing input element 
            // type="radio" 
            var x =
              "GFG").innerHTML = x;

Before Clicking On Button:

After Clicking On Button:

Supported Browsers: The browser supported by DOM input Radio defaultChecked property listed below:

  • Google Chrome
  • Internet Explorer 10.0 +
  • Firefox
  • Opera
  • Safari

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!