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

Safety Feature: "quick exit button" causes page to turn blank while it redirects


Inscape

Question

I have a unique need as I build a site for a shelter for abuse victims. They want their site to have a "quick exit button" which a person can click at any time if an abuser walks into the room to quickly exit the site (probably leading to Google). But the shelter is also in a remote area with slow internet, so there is going to be a 2-5 second delay or more while the page redirects.

I'm trying to come up with a solution that would instantly turn the whole page blank/white on button click to hide it while the site redirects. Any ideas out there? Here is an example of the kind of "quick exit button" my client wants: https://www.safv.org/

Link to comment

5 answers to this question

Recommended Posts

  • 1

You could close the window instead of a redirect with some Javascript.

close ( );

This can be used in an anchor tag/link.

javascript: close ( );

You could remove the HTML with some Javascript before the redirect.

const n = document.getElementsByTagName ( 'HTML' ) [ 0 ];

n.parentNode.removeChild ( n );

location.href = '[enter url here between single quotes]';

But overall I think it would be better if possible to get them into a private browsing window ASAP because of history tracking.  Then use the close window technique. At least once in a private browsing window and it closes the activity there isn't traceable.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment
  • 0
On 5/20/2021 at 8:27 PM, creedon said:

get them into a private browsing window ASAP because of history tracking

Thanks so much for this reply @creedon, I'm just seeing it now. This is super helpful! I will play around with these options.

I thought of exactly what you mentioned about history tracking... the "quick exit button" seems like a pretty shaky solution if the url is in their recent browsing history! Is there a link I could put in the announcement bar that opens the website in an incognito window, to have people click that before they even start browsing? I've never tried that or researched that before. But even in that case, they would have already opened the website in their standard browser to begin and therefore it would still be in their browsing history.

It's a sad situation to think about... this project gets heavy at times!

Link to comment
  • 0
On 5/20/2021 at 9:00 PM, Inscape said:

I have a unique need as I build a site for a shelter for abuse victims. They want their site to have a "quick exit button" which a person can click at any time if an abuser walks into the room to quickly exit the site

You may find these previous threads helpful:

 

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment

Create an account or sign in to comment

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

×
×
  • Create New...