Solved

Can you delete history item?

Posted on 2001-09-11
8
169 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
 
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now