Skip to content

DevPath | Developer's Journey

[ITA] Intercettare la chiusura del browser

Avete la necessità di dover intercettare quella fase precedente alla chiusura del brower o del tab contenuto in esso?Eccovi qui la soluzione: function beforeUnload() { return "Sei sicuro di voler chiudere la finestra?";}window.onbeforeunload = beforeUnload; Ovviamente questo esempio vi mostrerà soltanto un alert che vi chiederà se chiudere la finestra o tornare alla pagina. Gli utilizzi sono molteplici, potete intercettare…
Categories Web

[ITA] .htaccess e hotlinking

In questo post vi mostrerò un metodo efficace per prevenire il consumo illecito della vostra banda e la violazione dei diritti di copyright. L’hot-linking è una tecnica alquanto fastidiosa, utilizzata spesso per linkare immagini provenienti da altri siti web. Per porre rimedio a questo “problema” c’è un sistema alquanto facile da utilizzare: usare il mod_rewrite nel file .htaccess del web…
Categories Web

[ITA] XHTML Strict e l’attributo target: workaround

Sicuramente chiunque di voi si sia imbattuto nella creazione di siti web che rispettino gli standard XHTML 1.1 del W3C e ha voluto mantenere la compatibilità con HTML 4 ha avuto dei problemi di validazioni degli elementi anchor poichè avevano l’attributo target che è diventato deprecato con il passaggio di versione… Un modo per bypassare il problema è ricorrere all’uso…
Categories Web

Posts navigation

  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

Popular posts

  • What kind of shaped professional are you?
  • The practicality of the Eisenhower Matrix
  • [ITA] Intercettare la chiusura del browser
  • Why I Stepped Down as CTO
  • [ITA] .htaccess e hotlinking

My Latest Books

Save Yourself From a Disaster
I'm sharing the architectural and practical details of each step I took to make my websites disaster-proof while keeping my cloud spending on a tight leash (so you could do this too).

10x Software Engineer
A journey through thoughts and suggestions off the beaten path to make your developer life easier.

Newsletter

  • Practical Estimates
  • Web Performances Recipes
  • Project Management
  • Time Management
  • About Me

© 2022 DevPath | Developer's Journey - by Fabio Cicerchia.

Back To Top
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT