answers ^#blog


Losing focus
Losing focus

Losing focus

Copying and pasting is really common, since it was invented in the 1980s by Larry Tesler. But sometimes users go mad with all the data in their clipboard. Therefore, it might be useful to implement some security measures into your website, especially into a contact form page or UGC part. This comes with the benefit that not only your users will see that you care about their data. Also, your aggregated data won’t be messed up and confuse your analysts. That’s why I searched for some security features regarding a safe user input/data aggregation.

For people who copy and paste a lot of stuff while they are surfing, I would recommend installing ClipTTL on their local machines. On the website owner side, you can’t bring up your users to care about, but you maybe can prevent the worst outcomes.

To achieve this, I want the browser tab to reload the page where critical data will be inserted. This reload should occur when the user switches tabs and returns, or when in general the user loses focus on the relevant page. To get this done, you can implement some JavaScript into the relevant webpage. The code goes like this:

var blurred = false;
if( window.location.href.indexOf
('/URL/') !== -1 ) {
window.onblur = function() { blurred = true; };
window.onfocus = function() { blurred && (location.reload()); };
}

This will reload the browser tap and your users won’t paste in some data coincidentally. You can find it in action on the 3close contact page.

But please be aware to inform your users about this unusual behavior, else they will go mad.

Here you can find additional information or just contact 3close.

This is a solution with:

JavaScript

Featured image comes from pexels.

Copying and pasting is really common, since it was invented in the 1980s by Larry Tesler. But sometimes users go mad with all the data in their clipboard. Therefore, it might be useful to implement some security measures into your website, especially into a contact form page or UGC part. This comes with the benefit that not only your users will see that you care about their data. Also, your aggregated data won’t be messed up and confuse your analysts. That’s why I searched for some security features regarding a safe user input/data aggregation.

For people who copy and paste a lot of stuff while they are surfing, I would recommend installing ClipTTL on their local machines. On the website owner side, you can’t bring up your users to care about, but you maybe can prevent the worst outcomes.

To achieve this, I want the browser tab to reload the page where critical data will be inserted. This reload should occur when the user switches tabs and returns, or when in general the user loses focus on the relevant page. To get this done, you can implement some JavaScript into the relevant webpage. The code goes like this:

var blurred = false;
if( window.location.href.indexOf
('/URL/') !== -1 ) {
window.onblur = function() { blurred = true; };
window.onfocus = function() { blurred && (location.reload()); };
}

This will reload the browser tap and your users won’t paste in some data coincidentally. You can find it in action on the 3close contact page.

But please be aware to inform your users about this unusual behavior, else they will go mad.

Here you can find additional information or just contact 3close.

This is a solution with:

JavaScript

Featured image comes from pexels.

furthermore

Make footer lines static in WordPress

Adding a gradient as background in WordPress

Losing focus

Release note

Browsers render different

Merry Christmas everybody

Aspect ratio Media Query

Light and dark vs. black and white

Screen orientation reloaded

answers

^#blog


3close Agency UG Logo

by commenting this article, you agree to the privacy policy & the storage of the personal data you provide.

Leave a Reply

Your email address will not be published. Required fields are marked *