Function to prevent accidentally pressing the 'back' button


Published by dominik, 29 October 2013, 21h17. This page has been displayed 603 times.

Dear admins

After multiple times having lost the whole text I've just written because I accidentally pressed the 'back button' key sequence on my keyboard (ctrl-left), I  kindly ask you to implement a javascript function which asks something like 'are you sure you want to leave this page?' in the "Bericht Editor" instead of just going back in the browser history.

Perhaps this article might give some indications:
http://jordanhollinger.com/2012/06/08/disable-the-back-button-using-html5


Rgds,
Dominik



Comments (12)


Post a comment

Deleted comment

Deleted comment

dominik says: RE:
Sent 30 October 2013, 11h35
Might be easier to provide this functionality on the basis of the website's HTML code instead of forcing each user to fiddle around with his webbrowsers settings. Let alone, that mobile devices do not allow such a thing!

Rgds,
Dominik

Deleted comment

dominik says: RE:
Sent 30 October 2013, 11h53
Doing it 'better' than others ideally should be the intention of everyone providing a service to users.

xaendi says: RE:
Sent 30 October 2013, 11h49
Zu den mobile Devices: Da funktioniert die Erfassung von Tourenberichten (zumindest auf iPad/iPhone) leider noch immer nicht ;-)

sven86 says: RE:
Sent 30 October 2013, 17h40
Bei meinem Samsung (also Androix) geht das schon, allerdings werden die erzeugten Absätze nicht dargestellt

TomClancy says: Aus diesem (und weiteren) Gründen
Sent 30 October 2013, 12h45
redigiere ich meine Texte in der Regel in meinem Textverarbeitungsprogramm und kopiere ihn dann in Hikr. Für mich ist es einfach übersichtlicher und ich kann erst noch die Rechtschreibprüfung "drüber" lassen :-)

Sportliche Grüsse
TC

dominik says: RE:Aus diesem (und weiteren) Gründen
Sent 30 October 2013, 13h30
Wieso denn überhaupt ein Web-Editor? Kannst ja grad Deinen Text per Email an die Admins schicken und die laden ihn dann in die Datenbank :-)

TomClancy says: Das andere Extrem!
Sent 30 October 2013, 13h46
Also mir passt die aktuelle Lösung und wer den Web-Editor benützen will, kann das ja, muss sich aber der damit verbundenen Besonderheiten bewusst sein. Da ich in Sachen Internet nur ein simpler User bin, masse ich mir kein Urteil über Fragen an :-)

dominik says:
Sent 1 November 2013, 17h14
I wonder if the admins of this site actually are still alive? No feedback? No comment?

Stijn says: +1
Sent 3 November 2013, 12h08
Happened to me several times as well, especially since I switch between a Mac and a standard keyboard, and it's easy to press Alt-left when intending to press Command+left.


Post a comment»