| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Electrifying Guy ![]() Join Date: Sep 2003
Posts: 4,749
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Any Code/Script To "Hide" Page Location In Browser? Next question: if I click on any link to my domain name's website, is there a code/script that'll "retain" the domain name only without revealing what comes after the .com part? You know, I go to www.domain.com, on my website I click pictures. Rather than my browser showing www.domain.com/pictures.htm, it'll retain only the .com part without anything after it. Is it possible to accomplish this effect? |
| |
| | #3 (permalink) | ||||
![]() Join Date: Jul 2005 Location: Coffs H, Australia
Posts: 3,456
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() But yer there's easier ways. One way would be to use a frame, with the frame containing the website. SO: www.domain.com/index.html or www.domain.com (same thing) would be a frame page that contains the page you want, and any link inside the frame would only navigate in the frame, so every link would stay as www.domain.com in the browser url box. The html would be: Code: <frameset rows="100%" frameborder="NO" border="0" framespacing="0"> <frame name="something" src="http://www.domain.com/page.html"> </frameset> <noframes> Your browser does not support frames </noframes> ????: NamePros.com http://www.namepros.com/programming/196428-any-code-script-hide-page-location.html All the best, Rhett.
__________________ Free Forums / GoDaddy Coupon Codes (NEW DOMAIN!) / Free Arcade Script / <?='Your computer is '.(1?fine:broken).'.'?> | ||||
| |
| | #4 (permalink) |
| I'll do it ![]() Join Date: Dec 2005 Location: India
Posts: 6,927
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Just use Include tags in the index.php If home is clicked then include home.php and if about is clicked then include about.php It think this is the most easiest thing to do. let me know if you want any further guidance.
__________________ |
| |
| | #5 (permalink) |
| NamePros Member Join Date: Apr 2005
Posts: 117
![]() ![]() | Doing it the billy connite way is the easiest way to do it. PHP includes and whatnot is overkill. I also suppose you can do it using ajax. <frameset rows="*,0" frameborder="NO" border="0" framespacing="0"> <frame name="something" src="http://www.domain.com/page.html"> <frame name="something2" src="anything"> </frameset> <noframes> Your browser does not support frames </noframes> |
| |