Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <details id="myDetails"> <summary>Copyright 1999-2014.</summary> <p> - by Refsnes Data. All Rights Reserved.</p> <p>All content and graphics on this web site are the property of the company Refsnes Data.</p> </details> <p>Click the "Try it" button to specify that the details should be visible (open) to the user.</p> <button onclick="myFunction()">Try it</button> <p><b>Note:</b> The details element is currently only supported in Chrome, Safari 6+ and Opera 15+.</p> <script> function myFunction() { document.getElementById("myDetails").open = true; } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_details_open2 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:31:52 GMT --> </html>
Result:
Try it Yourself - © w3schools.com