{"id":520,"date":"2013-11-22T02:25:42","date_gmt":"2013-11-22T02:25:42","guid":{"rendered":"http:\/\/a1webdesignteam.com\/blog\/?p=520"},"modified":"2013-11-22T02:25:42","modified_gmt":"2013-11-22T02:25:42","slug":"popup-message-on-exit-of-web-page","status":"publish","type":"post","link":"https:\/\/a1webdesignteam.com\/blog\/popup-message-on-exit-of-web-page\/","title":{"rendered":"Popup Message on Exit of Web Page"},"content":{"rendered":"<p>Asking confirmation when leaving the page to visitor\u2019s is a great way to increase the engagement\u00a0on your web site. Implementation of popup message on exit of a web page is very simple to implement. \u00a0You can write simple javascript code to use the windows event\u00a0onbeforeunload.<\/p>\n<p><strong>popup.<\/strong><br \/>\n1. Never place Adsense in the exit or any popup this is the violation of Google Adsense.<br \/>\n2. This script will come for every page, you need on exit from the domain this is not the solution.<\/p>\n<div>\n<table>\n<tbody>\n<tr>\n<td>\n<pre>&lt;script type=\"text\/javascript\"&gt;\/\/ &lt; ![CDATA[\r\n  var exitmessage = 'Please dont go!'; \/\/custome message\r\n    DisplayExit = function () {\r\n\t\treturn exitmessage;\r\n    };\r\n    window.onbeforeunload = DisplayExit;\r\n\/\/ ]]&gt;&lt;\/script&gt;<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><img loading=\"lazy\" alt=\"popup on exit\" src=\"http:\/\/dj1c1fhw3dvpt.cloudfront.net\/wp-content\/uploads\/2013\/08\/popup-exit.png\" width=\"370\" height=\"201\" \/><\/p>\n<p>You can increase\u00a0your site\u2019s traffic by 200% and decrease the rate of bounce rate dramatically\u00a0by using this simple javascript code.<\/p>\n<p><a href=\"http:\/\/wordpress.org\/plugins\/pinoy-pop-up-on-exit\/\" target=\"_blank\" rel=\"nofollow\">Pinoy Pop Up on Exit<\/a>\u00a0is also a good alternate for WordPress blogs, but this plugin is not working after the WordPress 3.6 release. You may need to change the plugin source code before use.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Asking confirmation when leaving the page to visitor\u2019s is a great way to increase the engagement\u00a0on your web site. Implementation of popup message on exit of a web page is very simple to implement. \u00a0You can write simple javascript code to use the windows event\u00a0onbeforeunload. popup. 1. Never place Adsense in the exit or any [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/520"}],"collection":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/comments?post=520"}],"version-history":[{"count":0,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/520\/revisions"}],"wp:attachment":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media?parent=520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/categories?post=520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/tags?post=520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}