replace only some part of current page on click of link Using javascript

294 views Asked by At

Current scenario

enter image description here

Hi i want to load page onclick of link that will replace only some part of page.I don't want to load new page or tab.The part to replace should be dynamic and rest should be static.Any suggestion.I tried window.location and other options but didn't meet requirement.

1

There are 1 answers

0
Oscar Siauw On

One way is to load the "dynamic part" of the page in an iframe inside the "static part" of the page.

Another option is for you to figure out how to update the DOM content of a HTML element (for example more commonly a div) using JavaScript and how/where to load the DOM content from.