टेबल बॉर्डर की चौड़ाई बदलने के लिए, DOM border प्रॉपर्टी का उपयोग करें। जावास्क्रिप्ट में टेबल बॉर्डर की चौड़ाई बदलना सीखने के लिए निम्न कोड चलाकर देखें:
उदाहरण
<!DOCTYPE html> <html> <head> <script> function borderFunc(x) { document.getElementById(x).style.border = "5px dashed blue"; } </script> </head> <body> <table style = "border:2px solid black" id = "newtable"> <tr> <td>One</td> <td>Two</td> </tr> <tr> <td>Three</td> <td>Four</td> </tr> <tr> <td>Five</td> <td>Six</td> </tr> </table> <p> <input type = "button" onclick = "borderFunc('newtable')" value = "बॉर्डर चौड़ाई बदलें"> </p> </body> </html>