| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Electrifying Guy Forum Moderator | 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) | |
![]() | Quote:
![]() 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> All the best, Rhett.
__________________ <?php if(1===1){ $computer="fine."; }else{ $computer="broken."; } echo "Your computer is ".$computer; ?> | |
| |
| | #4 (permalink) |
| I'll do it Technical Services | 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.
__________________ Vhuv|Delq|Fhur|Twut|Tluz|Kegh|Vhir|Juhy|Ruuz|Jyos|Jupt|Vhek Webmaster Blog | Software Downloads Sponsor Ads at SponAds.com |
| |
| | #5 (permalink) |
| NamePros Member | 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> |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |