Jump to content
xisto Community
humphrey88

Retaining Url

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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. :D

 

Best regards,

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 :D

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Well it could be to hide because he's ashamed of the free host :D
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..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.