Hello sir,
I want to make a HTML page with the window splitted into two.
In the left side i will give the html coding and the right side i want output for that coding(during runtime).
Printable View
Hello sir,
I want to make a HTML page with the window splitted into two.
In the left side i will give the html coding and the right side i want output for that coding(during runtime).
Real quick, this should give you something to start withCode:<html>
<head>
<TITLE>My First Frame Page</TITLE>
<script type="text/javascript">
function PreviewHTML()
{
document.getElementById('preview').innerHTML = document.getElementById('source').value;
}
</script>
</head>
<body>
<div style="float: left">
<textarea id='htmlsource' name='source' rows='30' cols='50'></textarea>
<br>
<input type='button' value='Preview' onclick="javascript:PreviewHTML();">
</div>
<div id='preview' style="float: left"></div>
</body>
</html>
@ MarkT
The script should be in an external javascript using this code in the header of he html page.
@bharanidharanitCode:<script language="JavaScript" src="../javascript/extra.js" type="text/javascript"></script>
The above method I posted should be used for accessing external style sheets as well.