Is it possible to import an external webpage into an existing one using java script. I was trying
document.location.href = page+"?lang=en";
<a href="#" onclick="setPage('page.html')">click me</a>
But that ends up being like a redirect, i'm looking for something like <c:import url="page.html"/> but I can't use jsp.