0

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).

3
Contributors
8
Replies
11
Views
8 Years
Discussion Span
Last Post by orwell84
0

Do you want this to just show the HTML for a website you made, or have it be an interactive thing were someone puts in HTML code on the left and the output shows up on the right?

0

I resolved this one. Here is the coding for that one.

<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>
0

Ok, because I tried the code and it didn't do that...

It doesnot work with other browsers except IE

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.