Load 3 Pages In 1 HTML Document

[Total: 0    Average: 0/5]

This shows how to have 3 distinct pages all load in one HTML file.

Body Code:

<script type=text/javascript>
var First  = '';
    First += '<html><head>';
	First += '</head><body>';
	First += 'I am the second.';
	
	First += '<';
	First += 'script type=text/javascript>';
    First += "var Second = '<html><head></head><body>I am the third.</body></html>';";
	First += 'function showSecond() {document.open();document.write(Second);document.close(); }';
    First += "setTimeout('showSecond()',5000);";
	First += '<';
	First += '/script>';
	
	First += '</body></html>';
function showFirst() { document.open();document.write(First);document.close(); }
setTimeout('showFirst()',5000);
</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *