Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

History

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
GB
is there something i can add to the code of a page to stop it from appearing in the user's history? the reason i want this, is so that they don't go back to it when they hit back (i'm not so bothered about them keeping a cache on their hard drive).

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Most users would be bothered by you messing with the usability of their browser.. however, if you were to create a page that has a refresh and that points to the content page, the back button would only take them back to the refresh and to thepage they were on... but I would find it annoying and probably not go to that site again. I have even been known to write angry emails to webmasters when a site that I checked out on google refused to allow me to go back to the google search page.

When in doubt, deny all terms and defnitions.
 
as a rule, i agree with you - but i have an interesting situation.

my site is controlled my a flash banner which changes the content of certain frames form time to time. these frames have no real content, they just effect the overall style of the site. i don't want the use to press back and find all that happens is they return to and previoius style.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
There are ways to have the web page create a new window without buttons, etc... again, some people are annoyed at this behavior when a site hijacks their browser...

Use javascript to open the new window


<INPUT type=&quot;button&quot; value=&quot;New Window!&quot; onClick=&quot;window.open('resizable=no')&quot;>



When in doubt, deny all terms and defnitions.
 
it's not a new window though, it's just changing the url of an existing frame.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
But, if you were to link to this page from another page in the manner I described, it would create such a window... do you see what I am getting at? If this page is the index.html, then you would have to make index page nothing but a portal to link to the new window to make it work.

When in doubt, deny all terms and defnitions.
 
ic, so my banner creates a new window, which in turn changes the content of a freame in the main window?

are you sure this will leave the action in the back-stack of the new window, not in the window that has had the content of its frame changed?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
The only way to find out is to back up what you have now, and then play with it... not seeing the layout of what you are doing, and not being all that proficient in Flash, I can't give a definitive answer.

When in doubt, deny all terms and defnitions.
 
i'll try it

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
i tried it. it all went into the back-stack of the page that changed, not the one that caused the change. no good.

back to the drawing board. any other ideas? anybody?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
I haven't read the whole thread - it was just something that caught my eye...

Have you tried using the javascript location.replace function?

I use this all over the place to prevent content ever appearing in the browsers history.

CA
 
i restarted the thread a few days ago, and that very thing was suggested to me. it works. thanks, all the same.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top