Sortie de navigation avisé

Questions ou commentaires?

But

Aviser l'utilisateur d'une redirection vers un autre site.

Exemples

Comment implémenter

  1. Add a class wb-exitscript on selected URL.
  2. Add a data-wb-exitscript attribute on the link element and specify a redirect URL.

Configuration options

Option Description How to configure Values
msgboxHeader Change message box title Add "i18n":{ "msgboxHeader": "Avertissement de sortie"} to the data-wb-exitscript attribute. Your custom message box title
exitMsg Show custom message Add "i18n":{ "exitMsg": "This is a custom message."} attribute. Your custom message
targetWarning Show custom message Add "i18n":{ "targetWarning": "This is a custom message."} attribute. Your custom message
targetWarning Show custom message Add "i18n":{ "targetWarning": "This is a custom message."} attribute. Your custom message
yesBtn Change the "Yes" button label Add "i18n":{ "yesBtn": "Sure"} to the data-wb-exitscript attribute. Your custom label
cancelBtn Change the "Cancel" button label Add "i18n":{ "cancelBtn": "Nope"} to the data-wb-exitscript attribute. Your custom label
.wb-exitscript-urlparam Retrieves the original URL Add class .wb-exitscript-urlparam to the container . Your custom label

Source code

Exit script code on GitHub

Date de modification :