|
-
Dec 26th, 2008, 10:08 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Need help in HTML
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).
-
Dec 26th, 2008, 01:44 PM
#2
Re: Need help in HTML
Real quick, this should give you something to start with
Code:
<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>
-
Dec 26th, 2008, 06:21 PM
#3
Re: Need help in HTML
@ MarkT
The script should be in an external javascript using this code in the header of he html page.
Code:
<script language="JavaScript" src="../javascript/extra.js" type="text/javascript"></script>
@bharanidharanit
The above method I posted should be used for accessing external style sheets as well.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|