<textarea id="runcode10299"><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; charset=gb2312 "/> <title> Untitled document </title> <script language=" javascript "type=" Text/javascript "> function $ (obj) {return document.getElementById (obj); function Close_open () {if ($ ("Mytr"). Currentstyle.display = = "None" {$ ("mytr"). Style.display = " "; else {$ (' mytr '). Style.display = "None"; } </script> </pead> <body> <table> <tr onclick= "Close_open ()" ><td>1<td> </tr> <tbody id= "Mytr" > <tr><td>2<td></tr> <tr><td>3<td>< /tr> </tbody> </table> </body> </ptml></textarea>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]