Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> p#myP { text-decoration: underline; } </style> </head> <body> <p id="myP"> Hello world! </p> <p>Click the "Try it" button to change the color of the underline.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("myP").style.MozTextDecorationColor = "red"; // Code for Firefox document.getElementById("myP").style.textDecorationColor = "red"; } </script> <p><b>Note:</b> The textDecorationColor property is not supported in any of the major browsers.</p> <p><b>Note:</b> Firefox supports an alternative, the MozTextDecorationColor property.</p> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_textdecorationcolor by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:25:57 GMT --> </html>
Result:
Try it Yourself - © w3schools.com