Solved

Can you delete history item?

Posted on 2001-09-11
8
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
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-…
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…

690 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