Results 1 to 3 of 3

Thread: [RESOLVED] Need help in HTML

  1. #1

    Thread Starter
    Fanatic Member bharanidharanit's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    673

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

  2. #2
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    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>

  3. #3
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    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
  •  



Click Here to Expand Forum to Full Width