Frame Forwarding using Javascript.

That is when you hit abcd.com it will forward to yahoo.com but the URL in address bar will not change. For this put the below content in index.html of the domain abcd.com

 

<html>

<head>

<title>abcd.com</title>

<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>

</head>

<script language=”JavaScript”>

document.write(“<frameset rows=* frameborder=NO border=0 framespacing=0 cols=*>”);

document.write(“<frame name=main src=http://www.yahoo.com”+document.location.search+”>”);

document.write(“</frameset>”);

document.write(“<noframes>”);

document.write(“< body bgcolor=#FFFFFF text=#000000>”);

document.write(“</body></noframes>”);

</script>

</html>

Leave a Comment