How can I completely load an .htm file content from another .html? Including Code.?

carol

New member
As the title says, im wondering how i can load / read some .html from another one. like if i were to open main.html and then click a button (which i already have) then it loads that other html inside the existing one. But just displaying the code.

Thanks
Thanks, i have that part down. But what im really asking is if i can load another html documents code from within a html
%%Inside of cool.html%%
*button here* (User presses button)

example.htm's code appears here
<html>
<head>
</head>
<body>
</body>
</html>
 
Iframe is easy no muss no fuss loads a whole page inside another page

<iframe src="" name="" width="" height=""> Sorry your browser does not support frames or is currently not set to accept them.</iframe>

<a href="/img_articles/9081/page2.html" target="example"> Change here to change the page inside the iframe</a>
 
Back
Top