Sortie de navigation avisé

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

Configuration par defaut:

"i18n": { "msgboxHeader": }:
"Avertissement"
"i18n": { "exitMsg": }:
"Vous êtes sur le point de quitter un site sécurisé. Voulez-vous continuer?"
"i18n": { "targetWarning": }:
"Le lien s'ouvrira dans une nouvelle fenêtre de navigateur."
"i18n": { "yesBtn": }:
Oui
"i18n": { "cancelBtn" }:
Annuler
target
_self

Scenario – 1: http://csszengarden.com/219

This scenario displays a modal dialog with a message, “You are about to leave a secure site, do you wish to continue?”

View code

	<a href="http://csszengarden.com/219" class="wb-exitscript">http://csszengarden.com/219</a>
	

Scenario – 2: http://csszengarden.com/219

This scenario displays a modal dialog with a message, “You are about to leave a secure site, do you wish to continue? The link will open in a new browser window.”

View code

	<a href="http://csszengarden.com/219" class="wb-exitscript" target="_blank">http://csszengarden.com/219</a>
	

Scenario – 3: http://csszengarden.com/219

In this scenario a middle page opens in the same window with a link to the non-secure site.

View code

	<a href="http://csszengarden.com/219" class="wb-exitscript" data-wb-exitscript='{"url": "../../docs/ref/exitscript/exiturl-fr.html"}'>http://csszengarden.com/219</a>
	

Scenario – 4: http://csszengarden.com/219. The link will open in a new browser window.

In this scenario a middle page opens in a new window with a link to the non-secure site.

View code

	<a href="http://csszengarden.com/219" class="wb-exitscript" target="_blank" data-wb-exitscript='{"url": "../../docs/ref/exitscript/exiturl-fr.html"}'>http://csszengarden.com/219</a>
	
This example shows a custom message

http://csszengarden.com/219

View code

	<a href="http://csszengarden.com/219" class="wb-exitscript" data-wb-exitscript='{
	"i18n":{
	"exitMsg": "This is a custom message.",
	"cancelBtn": "Nope",
	"yesBtn": "Sure" }
	}'>http://csszengarden.com/219</a>
	

Users can change button labels, message box title, and set a custom message

http://csszengarden.com/219

View code

	<a href="http://csszengarden.com/219" class="wb-exitscript" data-wb-exitscript='{
	"i18n":{ "msgboxHeader": "Avertissement de sortie",
	"cancelBtn": "Nope",
	"yesBtn": "Sure" }
	}'>http://csszengarden.com/219</a>
	
Date de modification :