librelist archives

« back to archive

Re: [flask] Flask add a back button

Re: [flask] Flask add a back button

From:
Cornejo, Brandon
Date:
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: www.corvisa.com<http://www.corvisa.com>


[https://corvisacloud.com/media/filer_public/c2/64/c264166d-4848-4aa9-adab-05b0fd682a77/corvisa-logo-emailsig.png]<http://www.corvisa.com>
________________________________
From: flask@librelist.com <flask@librelist.com> on behalf of k_q_11 
<k_q_11@zoho.com>
Sent: Wednesday, June 24, 2015 3:07 PM
To: flask@librelist.com
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"?