अवलोकन
borderTopStyle प्रॉपर्टी टॉप बॉर्डर की स्टाइल (solid, dashed, आदि) सेट करती है।
उदाहरण
<!DOCTYPE html> <html> <head> <style> #box { border: thick solid gray; width: 300px; height: 300px; } </style> </head> <body> <div id="box">Demo Text</div> <br><br> <button type="button" onclick="display()">Change top border style</button> <script> function display() { document.getElementById("box").style.borderTopStyle = "dashed"; } </script> </body> </html>