Last updated on October 4th, 2022 at 02:29 pm

Very simple tutorial on loading an external webpage content in to div using simple jQuery technique. Here I am loading an HTML page named change_button_color.html that will change the color on click.

We have a div with id links. HTML page change_button_color.html gets loaded inside this div

Here is the code

<script type="text/javascript" src=""></script>
<div id="links">Loading Links...</div>
<script type="text/javascript">
    var refreshId = setInterval( function()
}, 6000);

The above script will read and load the webpage every 6 seconds. Modify the time interval as per your requirement.


Leave a Reply

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