Home › Forums › JavaScript › Dynamic Page Replacing Content › Reply To: Dynamic Page Replacing Content
January 14, 2016 at 4:08 pm
#236821
Shikkediel
Participant
This sounds like something to be approached with Ajax. It can load web content and insert it without refreshing the page. You’d need to add jQuery to the page for that, the most basic form of this behaviour is .load()
. Say you have a parent div #parent
and an external file called newstuff.html
. Then it would be something like :
$('#somebutton').click(function() {
$('#parent').load('newstuff.html');
});