Solved

Can you delete history item?

Posted on 2001-09-11
8
173 Views
Last Modified: 2012-05-05
I want to send the user to the main page of a site but i dont want them to have and histoy options or the ability to go back. Can this be done?
0
Comment
Question by:hutchison
8 Comments
 
LVL 19

Accepted Solution

by:
webwoman earned 50 total points
ID: 6475688
Not in the main browser window... if you open a new window, the back button won't go further back than the page it opened with, and you can turn off the features you don't want.

But in the main browser window, you don't have that option.
0
 
LVL 2

Expert Comment

by:rabanero
ID: 6475908
Try in your body tag:

<body onunload="window.location='thisPage.html'">

where thisPage.html is the name of the same page.

P.D.: When I tried it I have had Dr.Watson's alerts, but perhaps it's my system. Try it!
0
 
LVL 3

Expert Comment

by:newjack
ID: 6475912

If you don't want people to be able to browse back within your site you could use the document.location.replace() method.

When you replace and URL with this method, that URL also replaces the current page in the clients history.

If you use this in each link within your site, there will be no links in your history to use for the back-button.

To start off with a clean history to start with, opening a new window is probably the best option (as webwoman suggested)



hope this helps,
NJ
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 2

Expert Comment

by:rabanero
ID: 6475937
NJ, and what about existent URL's in history. window.location.replace() it's good if you have opened the windows and start to navigate inside this pages, but when you have navigated before and then load any kind of these pages, this method is not efficient.

One second. If you load a index.html, for example, and only is a loader to a second page without location() creates a new history element. Then if you go back you will load index.html and inmediately rebound to second page.

It's a dummy method. If you press "back" quickly you go back more than one time...
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6476113
Or right-click on the back button to bypass the page.

It is considered VERY rude to break a back button.

newjack's suggestion is the one to use

Michel
0
 
LVL 3

Expert Comment

by:newjack
ID: 6476131
rabanero,
your remark is legit, and that's why I added there lines in my previous comment:

>To start off with a clean history to start with, opening
>a new window is probably the best option (as
>webwoman suggested)

:)
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6858045
Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Please click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20128021.html
http://www.experts-exchange.com/questions/Q.20174762.html
http://www.experts-exchange.com/questions/Q.20181711.html
http://www.experts-exchange.com/questions/Q.20230634.html
http://www.experts-exchange.com/questions/Q.20244696.html
http://www.experts-exchange.com/questions/Q.20258320.html
http://www.experts-exchange.com/questions/Q.20267851.html
http://www.experts-exchange.com/questions/Q.20270473.html




PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.  Also, if you are interested in the cleanup effort, please click this link http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange

P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6909158
Admin notified of User neglect. Force-accepted by
Netminder
CS Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question