Search


Exit script

The script redirects users to another site.

Plugin default settings:

"i18n": { "msgboxHeader": }:
"Warning"
"i18n": { "exitMsg": }:
"You are about to leave a secure site, do you wish to continue?"
"i18n": { "targetWarning": }:
"The link will open in a new browser window."
"i18n": { "yesBtn": }:
Yes
"i18n": { "cancelBtn" }:
Cancel
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 external site.

View code

	<a href="http://csszengarden.com/219" class="wb-exitscript" data-wb-exitscript='{"url": "../../docs/ref/exitscript/exiturl-en.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-en.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>
	

Page details

Date modified: