Results 1 to 5 of 5

Thread: JavaScript: Clearing the history?

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2004
    Posts
    45

    JavaScript: Clearing the history?

    Hi everyone,

    Is it possible to clear the history using JavaScript or at least clear the back history so that the back button won't go back?

    I know about the history.back function i wondered if there was an equivilent history.clear function.

    Robin

  2. #2
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    It's not nice to hijack someone's browser like that. Why would you want to do that?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  3. #3
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    Why dont you just force your site to open in a new window. History will be clean then!
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2004
    Posts
    45
    Its not for a normal website. It is for a browser based library OPAC system. It needs to clear the history to stop people viewing other peoples details.

    Robin

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    Inserting these META Tags into your HTML document will prevent the client from caching the page.

    The browser is obliged not to cache the page.

    Code:
    <html>
      <head>
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
        <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" />
      </head>
      <body>
    ...
    ...
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width