{"id":1282,"date":"2016-02-21T19:07:28","date_gmt":"2016-02-21T19:07:28","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=1282"},"modified":"2016-04-22T16:39:52","modified_gmt":"2016-04-22T16:39:52","slug":"confirmation-before-closing-tab-browser-javascript","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/","title":{"rendered":"Confirmation Before Closing of Tab\/Browser using JavaScript"},"content":{"rendered":"<p>Today we&#8217;ll show you a small JavaScript snippet for displaying a confirmation dialog box at the time of closing the tab or browser. It is very helpful for both the user and website. For the better understanding of the uses of this script, we&#8217;re demonstrating two situations here.<\/p>\n<p><b>Situation 1:<\/b> In your web project an user fills up a long form but forgot to save the form and close the current tab or browser. In that case, he\/she lose all the data and he\/she would be very unhappy with your website.<\/p>\n<p><b>Situation 2:<\/b> Your website has a special offer or promotion for the visitors in a page. A visitor visits another page and left from the website without knowing those offers. You lose earning money.<\/p>\n<p>When user closing tab\/browser, if you implement a confirmation alert then it will help to solve the both the above-described situation. Not only for the above situations, you can use JavaScript browser close confirmation many other cases.<\/p>\n<p>Using JavaScript <code>onbeforeunload<\/code> event, you can easily show a confirmation on tab close event. JavaScript <code>onbeforeunload<\/code> event display a message in a confirmation dialog box to inform the users whether they want to stay or leave the current page.<\/p>\n<p>Place the below JavaScript code in the desired webpage. Only change the <code>confMessage<\/code> variable value as per the suitable message which you want to show to the user.<\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">script<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\/javascript\"<\/span>>\r\n<span style=\"color:#a71d5d;font-style:italic\">var<\/span> areYouReallySure <span style=\"color:#794938\">=<\/span> <span style=\"color:#811f24;font-weight:700\">false<\/span>;\r\n<span style=\"color:#a71d5d;font-style:italic\">function<\/span> <span style=\"color:#bf4f24\">areYouSure<\/span>() {\r\n    <span style=\"color:#794938\">if<\/span>(allowPrompt){\r\n        <span style=\"color:#794938\">if<\/span> (<span style=\"color:#794938\">!<\/span>areYouReallySure <span style=\"color:#794938\">&amp;<\/span><span style=\"color:#794938\">&amp;<\/span> <span style=\"color:#811f24;font-weight:700\">true<\/span>) {\r\n            areYouReallySure <span style=\"color:#794938\">=<\/span> <span style=\"color:#811f24;font-weight:700\">true<\/span>;\r\n            <span style=\"color:#a71d5d;font-style:italic\">var<\/span> confMessage <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"***************************************<span style=\"color:#696969;font-weight:700\">\\n<\/span><span style=\"color:#696969;font-weight:700\">\\n<\/span> W A I T !!! <span style=\"color:#696969;font-weight:700\">\\n<\/span><span style=\"color:#696969;font-weight:700\">\\n<\/span>Before leaving our site, follow CodexWorld for getting regular updates on Programming and Web Development.<span style=\"color:#696969;font-weight:700\">\\n<\/span><span style=\"color:#696969;font-weight:700\">\\n<\/span><span style=\"color:#696969;font-weight:700\">\\n<\/span>CLICK THE *CANCEL* BUTTON RIGHT NOW<span style=\"color:#696969;font-weight:700\">\\n<\/span><span style=\"color:#696969;font-weight:700\">\\n<\/span>***************************************\";<\/span>\r\n            <span style=\"color:#794938\">return<\/span> confMessage;\r\n        }\r\n    }<span style=\"color:#794938\">else<\/span>{\r\n        allowPrompt <span style=\"color:#794938\">=<\/span> <span style=\"color:#811f24;font-weight:700\">true<\/span>;\r\n    }\r\n}\r\n\r\n<span style=\"color:#a71d5d;font-style:italic\">var<\/span> allowPrompt <span style=\"color:#794938\">=<\/span> <span style=\"color:#811f24;font-weight:700\">true<\/span>;\r\n<span style=\"color:#691c97\">window<\/span>.onbeforeunload <span style=\"color:#794938\">=<\/span> areYouSure;\r\n&lt;\/<span style=\"color:#bf4f24\">script<\/span>>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Today we&#8217;ll show you a small JavaScript snippet for displaying a confirmation dialog box at the time of closing the tab or browser. It is very helpful for both the user and website. For the <\/p>\n","protected":false},"author":1,"featured_media":1284,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10],"tags":[140,141,143,142,66,139],"class_list":["post-1282","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-browser","tag-close","tag-confirm","tag-dialog-box","tag-javascript","tag-tab","cat-10-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Confirmation Before Closing of Tab\/Browser using JavaScript - CodexWorld<\/title>\n<meta name=\"description\" content=\"JavaScript onbeforeunload event - Simple script to display confirmation before closing of tab\/browser using JavaScript. Using JavaScript onbeforeunload event, you can easily show a confirmation on tab close event.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Confirmation Before Closing of Tab\/Browser using JavaScript - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"JavaScript onbeforeunload event - Simple script to display confirmation before closing of tab\/browser using JavaScript. Using JavaScript onbeforeunload event, you can easily show a confirmation on tab close event.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-21T19:07:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-22T16:39:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/02\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1363\" \/>\n\t<meta property=\"og:image:height\" content=\"767\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"Confirmation Before Closing of Tab\\\/Browser using JavaScript\",\"datePublished\":\"2016-02-21T19:07:28+00:00\",\"dateModified\":\"2016-04-22T16:39:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/\"},\"wordCount\":237,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png\",\"keywords\":[\"Browser\",\"Close\",\"Confirm\",\"Dialog Box\",\"JavaScript\",\"Tab\"],\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/\",\"name\":\"Confirmation Before Closing of Tab\\\/Browser using JavaScript - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png\",\"datePublished\":\"2016-02-21T19:07:28+00:00\",\"dateModified\":\"2016-04-22T16:39:52+00:00\",\"description\":\"JavaScript onbeforeunload event - Simple script to display confirmation before closing of tab\\\/browser using JavaScript. Using JavaScript onbeforeunload event, you can easily show a confirmation on tab close event.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png\",\"width\":1363,\"height\":767,\"caption\":\"confirmation-before-closing-tab-browser-using-javascript-by-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/confirmation-before-closing-tab-browser-javascript\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Confirmation Before Closing of Tab\\\/Browser using JavaScript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Confirmation Before Closing of Tab\/Browser using JavaScript - CodexWorld","description":"JavaScript onbeforeunload event - Simple script to display confirmation before closing of tab\/browser using JavaScript. Using JavaScript onbeforeunload event, you can easily show a confirmation on tab close event.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Confirmation Before Closing of Tab\/Browser using JavaScript - CodexWorld","og_description":"JavaScript onbeforeunload event - Simple script to display confirmation before closing of tab\/browser using JavaScript. Using JavaScript onbeforeunload event, you can easily show a confirmation on tab close event.","og_url":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2016-02-21T19:07:28+00:00","article_modified_time":"2016-04-22T16:39:52+00:00","og_image":[{"width":1363,"height":767,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/02\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"Confirmation Before Closing of Tab\/Browser using JavaScript","datePublished":"2016-02-21T19:07:28+00:00","dateModified":"2016-04-22T16:39:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/"},"wordCount":237,"commentCount":0,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/02\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png","keywords":["Browser","Close","Confirm","Dialog Box","JavaScript","Tab"],"articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/","url":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/","name":"Confirmation Before Closing of Tab\/Browser using JavaScript - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/02\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png","datePublished":"2016-02-21T19:07:28+00:00","dateModified":"2016-04-22T16:39:52+00:00","description":"JavaScript onbeforeunload event - Simple script to display confirmation before closing of tab\/browser using JavaScript. Using JavaScript onbeforeunload event, you can easily show a confirmation on tab close event.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/02\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/02\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png","width":1363,"height":767,"caption":"confirmation-before-closing-tab-browser-using-javascript-by-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/confirmation-before-closing-tab-browser-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"Confirmation Before Closing of Tab\/Browser using JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/02\/confirmation-before-closing-tab-browser-using-javascript-by-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-kG","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=1282"}],"version-history":[{"count":3,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1282\/revisions"}],"predecessor-version":[{"id":1286,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1282\/revisions\/1286"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/1284"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=1282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=1282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=1282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}