HOME       >>       Programming

Retaining Url


humphrey88

Hi

Is it possible to retain the URL of a website?

Example:
The user log on to http://abc.go.com/.

After he clicked a link to go to another page, the address bar would still retain http://abc.go.com/

I have been searching this using search engines but I just could not find what I wanted.

Therefore, can anyone here teach me how to do this?

thank you.


TavoxPeru

I view this behavior in many sites, i think they do it with the use of an iframe, so you will have 2 pages, one main page and one with your links. Lets view it with an example.

mainpage.htm:

<html><head><title>Main Page</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head><body><!-- here you can put whatever you want --><!-- set your iframe whatever you want --><iframe src="linkspage.htm" name="target_iframe"></iframe></body></html>
linkspage.htm:

<html><head><title>Links Page</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head><body><a href="http://forums.xisto.com/&; target="_self">Xisto</a><br /><a href="https://www.google.com/&%2334; target="_self">Google</a><br /><a href="http://forums.xisto.com/no_longer_exists/; target="_self">Yahoo</a><br /></body></html>
I'm not 100% sure if it is the way they implement this but this example works fine.

 

Best regards,


Pharoah

Personally, i find this kind of URL behavior annoying. Do you have a good reason for needing it, because sometimes it makes it hard to copy for links and stuff like that, and to bookmark.


OpaQue

I think there is a javascript code to do this..


dhanesh1405241511

I think there is a javascript code to do this..

Frames bro FRAMES ! god damn annoying HTML invention ! I asked this everywhere around ... and the only thing people could come up with is iframes .. If you find a javascript code .. please do post it ..

But as far as saving url and bookmarks are concerned .. i have seen sites with the same url in the bar .. but when i bookmark the page .. and then go to that particular site from my favourites .. the SAME page opens but with its original url .. m still wondering how they do that. Probably as u said .. javascript ..

Regards
Dhanesh.

Quatrux

I would encourage you to not do such things, why don't you want to show the full path to the content? Besides it is much better for search engines, search engines never liked or likes frames and iframes too


Pharoah

Well it could be to hide because he's ashamed of the free host :DAnyway i'd advise against this because some browsers don't support frames, and iframes are the least of all. You shouldn't do this unless there's a really good reason.


vhortex

Well it could be to hide because he's ashamed of the free host
Anyway i'd advise against this because some browsers don't support frames, and iframes are the least of all. You shouldn't do this unless there's a really good reason.


it is also possible that he is trying to hide the real host location..
i use to do that when i was doing my own hosting for myself..
that was just a few months ago when i stop when someone tried to DDOS me. sad sad person.. my zonealarm blocks the access..

i turned it down anyway since it gives me some worries if some of the attacks do break in.. i dont want a pc that turns into a spam daemon server or used for porn and warez..


VIEW ORIGINAL REGISTER GET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.