Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
MansidakS

HELP with showing warning when closing browser?

Question

Site URL: https://www.frostwriter.com

Hi!

I have a website where there is a <textarea> tag is being used. It basically allows the user to type in something and download the content as a txt file. I wish to add a feature that shows a dialog box in the browser which asks "Are you sure you wish to close the browser without saving your work"? I want to add this so that the user doesn't lose their content and can be reminded to download it before leaving the page or refreshing the page. I saw some similar questions in stack exchange but neither of them worked on Squarespace.

 

Any kind of help would be really appreciated! Thanks in advance! 

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 1

Looks like you have solved this.

1345960804_Screenshot2020-05-19at15_47_04.thumb.png.c3cdcdffa8da465512110e27a67debdc.png


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Developer and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDate Picker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links.

Share this post


Link to post
  • 0
On 5/19/2020 at 8:48 AM, paul2009 said:

Looks like you have solved this.

1345960804_Screenshot2020-05-19at15_47_04.thumb.png.c3cdcdffa8da465512110e27a67debdc.png

I did! Thanks for checking out the website though! It was just a js function that did the job.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...