I have a webpage (localhost). When I type its URL in the browser I am making it redirect to another webpage using Javascript.
<head>
<script type="text/javascript">
function wa() {
window.location = "http://www.anyWebsite.com";
}
</script>
</head>
<body onload="wa()">
As a result the URL in the web browser also changes. The only thing I need here is that the URL should not change.
You can load the other page into an
<iframe>or<frameset>that covers your entire page.Note that you will not be able to display the other page’s title.
Also note that many websites (such as StackOverflow) will prevent this for security reasons.