Exit script
Purpose
Redirects users to another sites.
Working example
How to implement
- Add a class
wb-exitscript
on selected URL. - 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 |
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
- Date modified: