Include page in other HTML page without iFrame

Hello Experts,

 How do I include Page in other html page page without using iFrame tag ?

Who is Participating?
Tom BeckConnect With a Mentor Commented:
I don't. Can't imagine why you would want to do this without jquery, but a little research will net you some examples. Here's one;
Tom BeckCommented:
You can use jquery .load()

<div id="otherPage"></div> <!--use css to specify size, placement, etc.-->

<script type="text/javascript>
madmareAuthor Commented:
do you have a solution without jquery ?
Chris StanyonCommented:
You can use Server Side Includes (SSI) in standard HTML or a server-side scripting language if your set up allows:

For SSI, insert a line in your page like so:

<!--#include virtual="someOtherFile.html" --> 

Open in new window

The page you're including to will probably need and extension of shtml, instead of html

For PHP, you'd use something like this:

<?php include('someOtherFile.html'); ?>

Open in new window

Your page will need an extension of php instead of html

Both will depend in part on your server setup.
All Courses

From novice to tech pro — start learning today.