Wednesday, 07 January 2009
jayeshjayan.com
Main Menu
Home
Tech Blog
Sweet Memories
Flash Album
Discussions
News
Links
Search
News Feeds
Contact Me
Home arrow Tech Blog
Newsflash

Technical Blog

Frame Forwarding using Javascript. 

April 13th, 2006

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 Reply

You must be logged in to post a comment.



© 2009 jayeshjayan.com
Joomla! is Free Software released under the GNU/GPL License.