{"id":8802,"date":"2015-12-08T19:15:51","date_gmt":"2015-12-08T17:15:51","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=8802"},"modified":"2017-12-21T15:41:49","modified_gmt":"2017-12-21T13:41:49","slug":"jquery-popup-window-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/","title":{"rendered":"jQuery Popup Window example\u00a0"},"content":{"rendered":"<p>The aim of this example is to show you how to use popup windows with jQuery. jQuery provides a good plugin that can be used for this purpose.<\/p>\n<p>A Popup window has a title and some content that may be a simple message or any HTML code (e.g. a login form etc.)<\/p>\n<p>The jQuery <code>dialog()<\/code> method is used to show a popup. This method is called as <code>$(\"selector\").dialog()<\/code> where the popup content will be the html that will be returned by a given selector.<\/p>\n<p>The jQuery <code>dialog()<\/code> method shows a popup with the default settings where the default popup is draggable, resizable, modal-less etc. To change the popup settings we need to pass an object to this method.<\/p>\n<p>Let&#8217;s look at some examples. To download the jQuery library, click <a href=\"https:\/\/jquery.com\/download\/\" target=\"_blank\">here<\/a>.<br \/>\n[ulp id=&#8217;qGGDqWnle19VavkM&#8217;]<\/p>\n<h2>1. HTML<\/h2>\n<p>First of all you need to create a simple html document. The jQuery <code>dialog()<\/code> method resides inside the jquery ui library, so you need to also download that. To download the jQuery UI library, click <a href=\"http:\/\/jqueryui.com\/download\/all\/\" target=\"_blank\">here<\/a>.<\/p>\n<pre class=\"brush:xml;highlight:[5,6,7]\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n\t&lt;title&gt;jQuery popup Example&lt;\/title&gt;\r\n\t&lt;script src=\"jquery-2.1.4.min.js\"&gt;&lt;\/script&gt;\r\n\t&lt;script src=\"jquery-ui.min.js\"&gt;&lt;\/script&gt;\r\n\t&lt;link rel=\"stylesheet\" href=\"smoothness\/jquery-ui.min.css\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<h2>2. jQuery popup examples<\/h2>\n<h3>2.1 Simple popup with default setting example <\/h3>\n<p>In this example we will show a simple message. As mentioned earlier, the popup window has the default settings as resizable, modal-less and so on. The default popup setting will be used here. Notice that the title attribute of the div tag is used as the popup title. <\/p>\n<p>Let&#8217;s add a simple div. <\/p>\n<pre class=\"brush:xml;\">\r\n&lt;!-- Example 1--&gt;\r\n&lt;div id=\"bookInfo\" title=\"Book Info\" style=\"display:none;\"&gt;\r\n  &lt;p&gt;This book is written by Cem.&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n&lt;a href=\"javascript:return 0\" onclick=\"openPoup()\"&gt;Open Popup&lt;\/a&gt;\t\r\n<\/pre>\n<p>Calling the jQuery <code>dialog()<\/code> method is enough to show popup window . <\/p>\n<pre class=\"brush:js;highlight:[4]\">\r\n&lt;script type=\"text\/javascript\"&gt;\r\n\t\/\/Example 1\r\n\tfunction openPoup() {\r\n\t\t$(\"#bookInfo\").dialog(); \r\n\t}\r\n&lt;\/script&gt;\r\n<\/pre>\n<p>The result in the browser would be:<br \/>\n<figure id=\"attachment_8809\" aria-describedby=\"caption-attachment-8809\" style=\"width: 800px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/jquery_popup_example1.gif\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/jquery_popup_example1.gif\" alt=\" Simple popup with default setting example\" width=\"800\" height=\"300\" class=\"size-full wp-image-8809\" \/><\/a><figcaption id=\"caption-attachment-8809\" class=\"wp-caption-text\">Simple popup with default setting example<\/figcaption><\/figure><\/p>\n<h3>2.2 Popup Login Form example <\/h3>\n<p>Let&#8217;s create a login form.<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;div id=\"dialog-form\" title=\"Login\" style=\"display:none;\"&gt;\r\n  &lt;form method=\"post\"&gt;\r\n      Name : &lt;br\/&gt;\r\n      &lt;input type=\"text\" name=\"name\" id=\"name\"&gt;&lt;br\/&gt;&lt;br\/&gt;\r\n      Password : &lt;br\/&gt;\r\n      &lt;input type=\"password\" name=\"password\" id=\"password\"&gt;&lt;br\/&gt;&lt;br\/&gt;\r\n\t  &lt;input type=\"submit\" value=\"login\"&gt;\r\n  &lt;\/form&gt;\r\n&lt;\/div&gt;\r\n&lt;a href=\"javascript:return 0\" onclick=\"login()\"&gt;Login&lt;\/a&gt;\r\n<\/pre>\n<p>When the login popup window is active, we don&#8217;t want the user to be interactive with other elements in the HTML document. For that, the popup setting must be changed as in line 5. Line 6 makes the popup window unresizable.<\/p>\n<pre class=\"brush:xml;highlight:[5,6]\">\r\n&lt;script type=\"text\/javascript\"&gt;\r\n\t\/\/Example 2\r\n\tfunction login() {\r\n\t\tvar dialog = $( \"#dialog-form\" ).dialog({\r\n\t\t  modal: true,\r\n\t\t  resizable: false\r\n\t\t});\r\n\t}\r\n&lt;\/script&gt;\r\n<\/pre>\n<p>The result in the browser would be:<br \/>\n<figure id=\"attachment_8822\" aria-describedby=\"caption-attachment-8822\" style=\"width: 800px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/jquery_popup_example2.gif\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/jquery_popup_example2.gif\" alt=\" Popup Login Form example\" width=\"800\" height=\"300\" class=\"size-full wp-image-8822\" \/><\/a><figcaption id=\"caption-attachment-8822\" class=\"wp-caption-text\">Popup Login Form example<\/figcaption><\/figure><\/p>\n<h3>2.2 Confirmation dialog example <\/h3>\n<p>A confirmation dialog is important in many cases, like when we want to ask the user if s\/he is sure about an operation. <\/p>\n<p>Let&#8217;s add the following simple html code.<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;!-- Example 3--&gt;\r\n&lt;div id=\"email-sending-confirm\" title=\"Email Sending\" style=\"display:none;\"&gt;\r\n  &lt;p&gt;Do you want to send this email ? &lt;\/p&gt;\r\n&lt;\/div&gt;\r\n&lt;a href=\"javascript:return 0\" onclick=\"confirm()\"&gt;Send Email&lt;\/a&gt;\r\n<\/pre>\n<p>As you can notice in the following jQuery code, adding buttons to popup is very simple.<\/p>\n<pre class=\"brush:js;highlight:[8,9,12,13,15,16]\">\r\n&lt;script type=\"text\/javascript\"&gt;\r\n\t\/\/Example 3\r\n\tfunction confirm() {\r\n\t\t$( \"#email-sending-confirm\" ).dialog({\r\n\t\t  resizable: false,\r\n\t\t  modal: true,\r\n\t\t  width:400,\r\n\t\t  buttons: {\r\n\t\t\t\"YES,I want\": function() {\r\n\t\t\t  \/\/Send Ajax then close dialog\r\n\t\t\t  $( this ).dialog( \"close\" );\r\n\t\t\t},\r\n\t\t\t\"No, Thanks\": function() {\r\n\t\t\t  $( this ).dialog( \"close\" );\r\n\t\t\t}\r\n\t\t  }\r\n\t\t});\r\n    }\r\n&lt;\/script&gt;\r\n<\/pre>\n<p>The result in the browser would be:<br \/>\n<figure id=\"attachment_8830\" aria-describedby=\"caption-attachment-8830\" style=\"width: 780px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/jquery_popup_example3.gif\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/jquery_popup_example3.gif\" alt=\" Confirmation dialog example\" width=\"780\" height=\"300\" class=\"size-full wp-image-8830\" \/><\/a><figcaption id=\"caption-attachment-8830\" class=\"wp-caption-text\">Confirmation dialog example<\/figcaption><\/figure><\/p>\n<h2>3.Conclusion<\/h2>\n<p>The popup window is commonly used in many cases as showing message, asking user for an operation&#8217;s confirmation or showing some forms as popup . jQuery provides a simple and powerful plugin to show popup windows. The jQuery <code>dialog()<\/code> method is used for that. The jQuery <code>dialog()<\/code> method is inside the jQuery UI library so we also need that besides jQuery core library. <\/p>\n<h2>4. Download<\/h2>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here : <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/11\/jquery-popup-example.zip\"><strong>jquery popup window example<\/strong><\/a>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The aim of this example is to show you how to use popup windows with jQuery. jQuery provides a good plugin that can be used for this purpose. A Popup window has a title and some content that may be a simple message or any HTML code (e.g. a login form etc.) The jQuery dialog() &hellip;<\/p>\n","protected":false},"author":106,"featured_media":919,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-8802","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>jQuery Popup Window example\u00a0 - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"The aim of this example is to show you how to use popup windows with jQuery. jQuery provides a good plugin that can be used for this purpose. A Popup\" \/>\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.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"jQuery Popup Window example\u00a0 - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"The aim of this example is to show you how to use popup windows with jQuery. jQuery provides a good plugin that can be used for this purpose. A Popup\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-08T17:15:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-21T13:41:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Saeb Najim\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Saeb Najim\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/\"},\"author\":{\"name\":\"Saeb Najim\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/7554117e1066be33eda4c81bac192cc9\"},\"headline\":\"jQuery Popup Window example\u00a0\",\"datePublished\":\"2015-12-08T17:15:51+00:00\",\"dateModified\":\"2017-12-21T13:41:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/\"},\"wordCount\":481,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg\",\"articleSection\":[\"jQuery\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/\",\"name\":\"jQuery Popup Window example\u00a0 - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg\",\"datePublished\":\"2015-12-08T17:15:51+00:00\",\"dateModified\":\"2017-12-21T13:41:49+00:00\",\"description\":\"The aim of this example is to show you how to use popup windows with jQuery. jQuery provides a good plugin that can be used for this purpose. A Popup\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"jQuery\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/jquery\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"jQuery Popup Window example\u00a0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/7554117e1066be33eda4c81bac192cc9\",\"name\":\"Saeb Najim\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1a6884eb32867720ef22a2a7728235120963a9a750d54d0356d5e3619ad3cd06?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1a6884eb32867720ef22a2a7728235120963a9a750d54d0356d5e3619ad3cd06?s=96&d=mm&r=g\",\"caption\":\"Saeb Najim\"},\"description\":\"Saeb has graduated from the University of Technology. During the last ten years (since 2005) he has been involved with a large number of projects about programming, software engineering, design and analysis . He works as a senior Software Engineer in the e-commerce and web development sector where he is mainly responsible for projects based on Java, Java frameworks, design patterns and Big Data technologies.\",\"sameAs\":[\"http:\/\/www.webcodegeeks.com\/\",\"https:\/\/www.linkedin.com\/in\/saebnajim\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/saeb-najim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"jQuery Popup Window example\u00a0 - Web Code Geeks - 2026","description":"The aim of this example is to show you how to use popup windows with jQuery. jQuery provides a good plugin that can be used for this purpose. A Popup","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.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/","og_locale":"en_US","og_type":"article","og_title":"jQuery Popup Window example\u00a0 - Web Code Geeks - 2026","og_description":"The aim of this example is to show you how to use popup windows with jQuery. jQuery provides a good plugin that can be used for this purpose. A Popup","og_url":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2015-12-08T17:15:51+00:00","article_modified_time":"2017-12-21T13:41:49+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg","type":"image\/jpeg"}],"author":"Saeb Najim","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Saeb Najim","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/"},"author":{"name":"Saeb Najim","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/7554117e1066be33eda4c81bac192cc9"},"headline":"jQuery Popup Window example\u00a0","datePublished":"2015-12-08T17:15:51+00:00","dateModified":"2017-12-21T13:41:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/"},"wordCount":481,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg","articleSection":["jQuery"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/","url":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/","name":"jQuery Popup Window example\u00a0 - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg","datePublished":"2015-12-08T17:15:51+00:00","dateModified":"2017-12-21T13:41:49+00:00","description":"The aim of this example is to show you how to use popup windows with jQuery. jQuery provides a good plugin that can be used for this purpose. A Popup","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-popup-window-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/"},{"@type":"ListItem","position":3,"name":"jQuery","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/jquery\/"},{"@type":"ListItem","position":4,"name":"jQuery Popup Window example\u00a0"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/7554117e1066be33eda4c81bac192cc9","name":"Saeb Najim","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1a6884eb32867720ef22a2a7728235120963a9a750d54d0356d5e3619ad3cd06?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1a6884eb32867720ef22a2a7728235120963a9a750d54d0356d5e3619ad3cd06?s=96&d=mm&r=g","caption":"Saeb Najim"},"description":"Saeb has graduated from the University of Technology. During the last ten years (since 2005) he has been involved with a large number of projects about programming, software engineering, design and analysis . He works as a senior Software Engineer in the e-commerce and web development sector where he is mainly responsible for projects based on Java, Java frameworks, design patterns and Big Data technologies.","sameAs":["http:\/\/www.webcodegeeks.com\/","https:\/\/www.linkedin.com\/in\/saebnajim"],"url":"https:\/\/www.webcodegeeks.com\/author\/saeb-najim\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/8802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=8802"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/8802\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/919"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=8802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=8802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=8802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}