<title>html to JavaScript conversion </title>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<link href= "Style.css" rel= "stylesheet" type= "Text/css"/>
<body>
<div class= "Menu_head" >html to JavaScript conversion </div>
<div class= "Content" >
<div> Please enter the HTML code below:</div>
<div>
<textarea name= "Htmlcource" style= "width:99%" rows= "id=" Osource "onpropertychange=" Change () "onchange=" Change () "></textarea>
</div>
<br/>
<div> below is the converted JavaScript code:</div>
<div>
<textarea name= "Jscode" style= "width:99%" rows= "id=" Oresult "title=" Double-click Complex Code "ondblclick= ' This.select" (); O Result.createtextrange (). ExecCommand ("Copy") ' ></textarea>
</div>
</div>
<script language= "JavaScript" >
<!--
function Change ()
{
Oresult.value= "Document.writeln (\" "+osource.value.replace (/\\/g," \\\\ "). Replace (/\//g," \\/"). Replace (/\ '/g," \ \ ' "). Replace (/\"/g, \\\ "). Split (' \ r \ n '). Join (" \ "); \ndocument.writeln (\" ") +" \ ")
}
-->
</SCRIPT>
</body>