{"id":125,"date":"2014-06-23T01:44:46","date_gmt":"2014-06-23T01:44:46","guid":{"rendered":"http:\/\/html5box.com\/blog\/?p=125"},"modified":"2014-06-23T01:45:21","modified_gmt":"2014-06-23T01:45:21","slug":"close-jquery-lightbox-with-javascript","status":"publish","type":"post","link":"https:\/\/html5box.com\/blog\/jquery-lightbox\/close-jquery-lightbox-with-javascript\/","title":{"rendered":"Close jQuery LightBox with JavaScript"},"content":{"rendered":"<p><strong>Question:<\/strong><\/p>\n<p>I have loaded one page into html5lightbox and in that page i have one button. on that button i want to close html5lightbox and redirect to other page. so, any method of custom event for that please?<\/p>\n<p><strong>Answer:<\/strong><\/p>\n<p>You can call the following JavaScript function to close the lightbox effect:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nhtml5Lightbox.finish();\r\n<\/pre>\n<p>html5Lightbox is a global variable created by the script.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: I have loaded one page into html5lightbox and in that page i have one button. on that button i want to close html5lightbox and redirect to other page. so, any method of custom event for that please? Answer: You can call the following JavaScript function to close the lightbox effect: html5Lightbox.finish(); html5Lightbox is a &hellip; <a href=\"https:\/\/html5box.com\/blog\/jquery-lightbox\/close-jquery-lightbox-with-javascript\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Close jQuery LightBox with JavaScript<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-jquery-lightbox"],"_links":{"self":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":2,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/125\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}