librelist archives

« back to archive

Re: [flask] Flask add a back button

Re: [flask] Flask add a back button

Cornejo, Brandon
2015-06-24 @ 20:42
Not exactly related to flask, but you will want to create that button with
Javascript. Something like this should work:

<input type="button" value="Back" onclick="window.history.back()" />

Brandon Cornejo  |  Corvisa LLC  |  Python Developer
1610 N. Second Street, Suite 101, Milwaukee, WI 53212
c: 414.517.0797  |  w:<>

From: <> on behalf of k_q_11 
Sent: Wednesday, June 24, 2015 3:07 PM
Subject: [flask] Flask add a back button

I have googling around to find a simple way to create a 'back' button to 
go to the previous page, like the back button in the browser. If the back 
button just redirect to the last "view", the user data filled in the form 
in the previous page will be lost. How can I prevent such loss without 
programming to retrieving the data in the last "view"?