PDA

View Full Version : Hide link from address bar



paragkarwade
03-28-2008, 08:51 AM
Hello, This is my first question in this forum.
I want to know, If our default link is www.abc.com, and when we'll clicked on any link, then the page should change as per the link, also address bar link changed from www.abc.com to www.abc.com/somelink.php.
So I dn't want to change the address bar link, it should be the same www.abc.com, only page will reflect to that location.

Thanks In Advance.
Parag

codeexploiter
03-28-2008, 09:20 AM
You can do this either by using a server-side approach or by using IFrames. Here you can find an IFrame based demo page:



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> </title>
<style type="text/css">

</style>
<script type="text/javascript">

</script>
</head>
<body>
<div>
<iframe frameborder="0" width="100%" height="1200px" src="http://search.a1books.com/cgi-bin/mktSearch?act=showDesc&code=gbase&rel=1&ITEM_CODE=0596008570"></iframe>
</div>
</body>
</html>


But Iframes has their own share of problems too.