<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml> <pead> <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8 "/> <meta name =" Author "CONTENT =" goaler "/> <meta name =" Keywords "CONTENT =" JS, HTML code running tool "/> <meta name = "Description" CONTENT = "JS, HTML code running Tools"/> <title> JS and HTML code running tools </title> <link href = "style.css" rel = "stylesheet" type = "text/css"/> </pead> </P> <body> JS and HTML Script running tool <pre class = "code" name = "textarea" style = "width: 99% "rows =" 30 "id =" testcode "> </textarea> <input name =" button "type =" button "onclick =" runCode (testcode) "value =" run code "> <input name =" button "type =" button "onclick =" copyCode (testcode) "value =" Copy code "> <input name =" button "type =" button "onclick =" saveCode (testcode) "value =" Save code "> <input name =" button "type =" button "onclick =" document. getElementById ('testcode '). value = '';" value = "Clear code"> </P> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]