{"id":356,"date":"2014-12-02T15:17:32","date_gmt":"2014-12-02T15:17:32","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=356"},"modified":"2016-04-27T17:53:08","modified_gmt":"2016-04-27T17:53:08","slug":"alert-dialog-box-using-jquery-css","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/","title":{"rendered":"Alert Dialog Box using jQuery and CSS"},"content":{"rendered":"<p>The alert window is very common and useful things for every web projects. We use the alert dialog box for display messages in the browser. All browsers have their default alert window style. Many times we need a custom alert dialog box for matching with our project theme. This tutorial helps you to create the custom alert popup.<br \/>\nWe have been developed two scripts for customizing the alert dialog. One is JavaScript script named <code>cwdialog.js<\/code> and another is CSS script named <code>cwdialog.css<\/code>. You can change the alert dialog box style with the use of <code>cwdialog.css<\/code> file. In this tutorial we will discuss, how can you use this two scripts and customize alert message box. To complete the whole system we have used jQuery, CSS, and HTML. It is very simple and easy to use.<\/p>\n<p>If you wish to view the demo, you can view the live demo from the above &#8220;Demo&#8221; link. Also, you can download the full scripts from the above &#8220;Download&#8221; link.<\/p>\n<h2>At first you need to include jQuery library file:<\/h2>\n<pre>&lt;<span style=\"color:#bf4f24\">script<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\/javascript\"<\/span> <span style=\"color:#bf4f24\">src<\/span>=<span style=\"color:#0b6125\">\"jquery.min.js\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">script<\/span>>\r\n<\/pre>\n<h2>Include the <code>cwdialog.js<\/code> and <code>cwdialog.css<\/code> file into the  HTML page:<\/h2>\n<pre>&lt;<span style=\"color:#bf4f24\">script<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\/javascript\"<\/span> <span style=\"color:#bf4f24\">src<\/span>=<span style=\"color:#0b6125\">\"cwdialog.js\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">script<\/span>>\r\n&lt;<span style=\"color:#bf4f24\">link<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\/css\"<\/span> <span style=\"color:#bf4f24\">rel<\/span>=<span style=\"color:#0b6125\">\"stylesheet\"<\/span> <span style=\"color:#bf4f24\">href<\/span>=<span style=\"color:#0b6125\">\"cwdialog.css\"<\/span>\/>\r\n<\/pre>\n<h2>Button HTML:<\/h2>\n<p> Just add HTML button tag and <code>onClick<\/code> element. You only need to call the <code>CWdialog()<\/code> function to use the custom dialog box. Pass the alert box message into this function.<\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">button<\/span> <span style=\"color:#bf4f24\">onClick<\/span>=<span style=\"color:#0b6125\">\"CWdialog('This is a notify dialog box, created by CodexWorld.');\"<\/span>>Click here&lt;\/<span style=\"color:#bf4f24\">button<\/span>>\r\n<\/pre>\n<h2><code>cwdialog.js<\/code> File:<\/h2>\n<p> This file contains the following JavaScript codes.<\/p>\n<pre><span style=\"color:#5a525f;font-style:italic\">\/\/ Global CWdialog variables<\/span>\r\n<span style=\"color:#a71d5d;font-style:italic\">var<\/span> <span style=\"color:#794938\">$<\/span>CWdialog <span style=\"color:#794938\">=<\/span> <span style=\"color:#811f24;font-weight:700\">null<\/span>,\r\n    <span style=\"color:#794938\">$<\/span>overlay <span style=\"color:#794938\">=<\/span> <span style=\"color:#811f24;font-weight:700\">null<\/span>,\r\n    <span style=\"color:#794938\">$<\/span>body <span style=\"color:#794938\">=<\/span> <span style=\"color:#811f24;font-weight:700\">null<\/span>,\r\n    <span style=\"color:#794938\">$<\/span><span style=\"color:#691c97\">window<\/span> <span style=\"color:#794938\">=<\/span> <span style=\"color:#811f24;font-weight:700\">null<\/span>,\r\n    <span style=\"color:#794938\">$<\/span>cA <span style=\"color:#794938\">=<\/span> <span style=\"color:#811f24;font-weight:700\">null<\/span>,\r\n    CWdialogQueue <span style=\"color:#794938\">=<\/span> [];\r\n\r\n<span style=\"color:#5a525f;font-style:italic\">\/\/ Add overlay and set opacity for cross-browser compatibility<\/span>\r\n<span style=\"color:#691c97\">$<\/span>(<span style=\"color:#a71d5d;font-style:italic\">function<\/span>() {\r\n    \r\n    <span style=\"color:#794938\">$<\/span>CWdialog <span style=\"color:#794938\">=<\/span> <span style=\"color:#794938\">$<\/span>(<span style=\"color:#0b6125\">'&lt;div class=\"cwdialog\">'<\/span>);\r\n    <span style=\"color:#794938\">$<\/span>overlay <span style=\"color:#794938\">=<\/span> <span style=\"color:#794938\">$<\/span>(<span style=\"color:#0b6125\">'&lt;div class=\"cwdialog-overlay\">'<\/span>);\r\n    <span style=\"color:#794938\">$<\/span>body <span style=\"color:#794938\">=<\/span> <span style=\"color:#794938\">$<\/span>(<span style=\"color:#0b6125\">'body'<\/span>);\r\n    <span style=\"color:#794938\">$<\/span><span style=\"color:#691c97\">window<\/span> <span style=\"color:#794938\">=<\/span> <span style=\"color:#794938\">$<\/span>(<span style=\"color:#691c97\">window<\/span>);\r\n    \r\n    <span style=\"color:#794938\">$<\/span>body.append( <span style=\"color:#794938\">$<\/span>overlay.css(<span style=\"color:#0b6125\">'opacity'<\/span>, <span style=\"color:#0b6125\">'.94'<\/span>) ).append(<span style=\"color:#794938\">$<\/span>CWdialog);\r\n});\r\n\r\n<span style=\"color:#a71d5d;font-style:italic\">function<\/span> <span style=\"color:#bf4f24\">CWdialog<\/span>(text, options) {\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Restrict blank modals<\/span>\r\n    <span style=\"color:#794938\">if<\/span>(text<span style=\"color:#794938\">===<\/span><span style=\"color:#811f24;font-weight:700\">undefined<\/span> <span style=\"color:#794938\">||<\/span> <span style=\"color:#794938\">!<\/span>text) {\r\n        <span style=\"color:#794938\">return<\/span> <span style=\"color:#811f24;font-weight:700\">false<\/span>;\r\n    }\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Necessary variables<\/span>\r\n    <span style=\"color:#a71d5d;font-style:italic\">var<\/span> <span style=\"color:#794938\">$<\/span>me <span style=\"color:#794938\">=<\/span> <span style=\"color:#234a97\">this<\/span>,\r\n            <span style=\"color:#794938\">$<\/span>_inner <span style=\"color:#794938\">=<\/span> <span style=\"color:#691c97\">$<\/span>('&lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"cwdialog-inner\"<\/span>>'),\r\n            <span style=\"color:#794938\">$<\/span>_buttons <span style=\"color:#794938\">=<\/span> <span style=\"color:#691c97\">$<\/span>('&lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"cwdialog-buttons\"<\/span>>'),\r\n            <span style=\"color:#794938\">$<\/span>_input <span style=\"color:#794938\">=<\/span> <span style=\"color:#691c97\">$<\/span>('&lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\"<\/span>>');\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Default settings (edit these to your liking)<\/span>\r\n    <span style=\"color:#a71d5d;font-style:italic\">var<\/span> settings <span style=\"color:#794938\">=<\/span> {\r\n    \r\n        animation: <span style=\"color:#811f24;font-weight:700\">700<\/span>, <span style=\"color:#5a525f;font-style:italic\">\/\/ Animation speed<\/span>\r\n        buttons: {\r\n            confirm: {\r\n                <span style=\"color:#bf4f24\">action<\/span>: <span style=\"color:#a71d5d;font-style:italic\">function<\/span>() { <span style=\"color:#794938\">$<\/span>me.dissapear(); }, <span style=\"color:#5a525f;font-style:italic\">\/\/ Callback function<\/span>\r\n                className: <span style=\"color:#811f24;font-weight:700\">null<\/span>, <span style=\"color:#5a525f;font-style:italic\">\/\/ Custom class name(s)<\/span>\r\n                id: <span style=\"color:#0b6125\">'confirm'<\/span>, <span style=\"color:#5a525f;font-style:italic\">\/\/ Element ID<\/span>\r\n                text: <span style=\"color:#0b6125\">'Ok'<\/span> <span style=\"color:#5a525f;font-style:italic\">\/\/ Button text<\/span>\r\n            }\r\n        },\r\n        input: <span style=\"color:#811f24;font-weight:700\">false<\/span>, <span style=\"color:#5a525f;font-style:italic\">\/\/ input dialog<\/span>\r\n        override: <span style=\"color:#811f24;font-weight:700\">true<\/span> <span style=\"color:#5a525f;font-style:italic\">\/\/ Override browser navigation while CWdialog is visible<\/span>\r\n    };\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Merge settings with options<\/span>\r\n    <span style=\"color:#794938\">$<\/span><span style=\"color:#693a17\">.extend<\/span>(settings, options);\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Close current CWdialog, exit<\/span>\r\n    <span style=\"color:#794938\">if<\/span>(text<span style=\"color:#794938\">==<\/span><span style=\"color:#0b6125\">'close'<\/span>) { \r\n        <span style=\"color:#794938\">$<\/span>cA.dissapear();\r\n        <span style=\"color:#794938\">return<\/span>;\r\n    }\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ If an CWdialog is already open, push it to the queue<\/span>\r\n    <span style=\"color:#794938\">if<\/span>(<span style=\"color:#794938\">$<\/span>CWdialog.<span style=\"color:#693a17\">is<\/span>(':visible')) {\r\n\r\n        CWdialogQueue.<span style=\"color:#693a17\">push<\/span>({text: text, options: settings});\r\n    \r\n        <span style=\"color:#794938\">return<\/span>;\r\n    }\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Width adjusting function<\/span>\r\n    <span style=\"color:#691c97\">this<\/span>.<span style=\"color:#bf4f24\">adjustWidth<\/span> <span style=\"color:#794938\">=<\/span> <span style=\"color:#a71d5d;font-style:italic\">function<\/span>() {\r\n        \r\n        <span style=\"color:#a71d5d;font-style:italic\">var<\/span> window_width <span style=\"color:#794938\">=<\/span> <span style=\"color:#794938\">$<\/span><span style=\"color:#691c97\">window<\/span><span style=\"color:#693a17\">.width<\/span>(), w <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"20%\"<\/span>, l <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"40%\"<\/span>;\r\n\r\n        <span style=\"color:#794938\">if<\/span>(window_width<span style=\"color:#794938\">&lt;=<\/span><span style=\"color:#811f24;font-weight:700\">800<\/span>) {\r\n            w <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"90%\"<\/span>, l <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"5%\"<\/span>;\r\n        } <span style=\"color:#794938\">else<\/span> <span style=\"color:#794938\">if<\/span>(window_width <span style=\"color:#794938\">&lt;=<\/span> <span style=\"color:#811f24;font-weight:700\">1400<\/span> <span style=\"color:#794938\">&amp;<\/span><span style=\"color:#794938\">&amp;<\/span> window_width <span style=\"color:#794938\">><\/span> <span style=\"color:#811f24;font-weight:700\">800<\/span>) {\r\n            w <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"70%\"<\/span>, l <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"15%\"<\/span>;\r\n        } <span style=\"color:#794938\">else<\/span> <span style=\"color:#794938\">if<\/span>(window_width <span style=\"color:#794938\">&lt;=<\/span> <span style=\"color:#811f24;font-weight:700\">1800<\/span> <span style=\"color:#794938\">&amp;<\/span><span style=\"color:#794938\">&amp;<\/span> window_width <span style=\"color:#794938\">><\/span> <span style=\"color:#811f24;font-weight:700\">1400<\/span>) {\r\n            w <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"50%\"<\/span>, l <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"25%\"<\/span>;\r\n        } <span style=\"color:#794938\">else<\/span> <span style=\"color:#794938\">if<\/span>(window_width <span style=\"color:#794938\">&lt;=<\/span> <span style=\"color:#811f24;font-weight:700\">2200<\/span> <span style=\"color:#794938\">&amp;<\/span><span style=\"color:#794938\">&amp;<\/span> window_width <span style=\"color:#794938\">><\/span> <span style=\"color:#811f24;font-weight:700\">1800<\/span>) {\r\n            w <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"30%\"<\/span>, l <span style=\"color:#794938\">=<\/span> <span style=\"color:#0b6125\">\"35%\"<\/span>;\r\n        }\r\n        \r\n        <span style=\"color:#794938\">$<\/span>CWdialog<span style=\"color:#693a17\">.css<\/span>(<span style=\"color:#0b6125\">'width'<\/span>, w)<span style=\"color:#693a17\">.css<\/span>(<span style=\"color:#0b6125\">'left'<\/span>, l);\r\n        \r\n    };\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Close function<\/span>\r\n    <span style=\"color:#691c97\">this<\/span>.<span style=\"color:#bf4f24\">dissapear<\/span> <span style=\"color:#794938\">=<\/span> <span style=\"color:#a71d5d;font-style:italic\">function<\/span>() {\r\n        \r\n        <span style=\"color:#794938\">$<\/span>CWdialog<span style=\"color:#693a17\">.animate<\/span>({\r\n            top: <span style=\"color:#0b6125\">'-100%'<\/span>\r\n        }, settings.animation, <span style=\"color:#a71d5d;font-style:italic\">function<\/span>() {\r\n            \r\n            <span style=\"color:#794938\">$<\/span>overlay<span style=\"color:#693a17\">.fadeOut<\/span>(<span style=\"color:#811f24;font-weight:700\">300<\/span>);\r\n            <span style=\"color:#794938\">$<\/span>CWdialog<span style=\"color:#693a17\">.hide<\/span>();\r\n            \r\n            <span style=\"color:#5a525f;font-style:italic\">\/\/ Unbind window listeners<\/span>\r\n            <span style=\"color:#794938\">$<\/span><span style=\"color:#691c97\">window<\/span><span style=\"color:#693a17\">.unbind<\/span>(<span style=\"color:#0b6125\">\"beforeunload\"<\/span>);\r\n            <span style=\"color:#794938\">$<\/span><span style=\"color:#691c97\">window<\/span><span style=\"color:#693a17\">.unbind<\/span>(<span style=\"color:#0b6125\">\"keydown\"<\/span>);\r\n\r\n            <span style=\"color:#5a525f;font-style:italic\">\/\/ If in queue, run it<\/span>\r\n            <span style=\"color:#794938\">if<\/span>(CWdialogQueue[<span style=\"color:#811f24;font-weight:700\">0<\/span>]) { \r\n                CWdialog(CWdialogQueue[<span style=\"color:#811f24;font-weight:700\">0<\/span>]<span style=\"color:#693a17\">.text<\/span>, CWdialogQueue[<span style=\"color:#811f24;font-weight:700\">0<\/span>].<span style=\"color:#b4371f\">options<\/span>);\r\n                CWdialogQueue.<span style=\"color:#693a17\">splice<\/span>(<span style=\"color:#811f24;font-weight:700\">0<\/span>,<span style=\"color:#811f24;font-weight:700\">1<\/span>);\r\n            }\r\n        });\r\n        \r\n        <span style=\"color:#794938\">return<\/span>;\r\n    };\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Keypress function<\/span>\r\n    <span style=\"color:#691c97\">this<\/span>.<span style=\"color:#bf4f24\">keyPress<\/span> <span style=\"color:#794938\">=<\/span> <span style=\"color:#a71d5d;font-style:italic\">function<\/span>() {\r\n        \r\n        <span style=\"color:#794938\">$<\/span><span style=\"color:#691c97\">window<\/span><span style=\"color:#693a17\">.bind<\/span>(<span style=\"color:#0b6125\">'keydown'<\/span>, <span style=\"color:#a71d5d;font-style:italic\">function<\/span>(e) {\r\n            <span style=\"color:#5a525f;font-style:italic\">\/\/ Close if the ESC key is pressed<\/span>\r\n            <span style=\"color:#794938\">if<\/span>(e.keyCode<span style=\"color:#794938\">===<\/span><span style=\"color:#811f24;font-weight:700\">27<\/span>) {\r\n                \r\n                <span style=\"color:#794938\">if<\/span>(settings.buttons.cancel) {\r\n                    \r\n                    <span style=\"color:#691c97\">$<\/span>(\"<span style=\"color:#bf4f24\">#cwdialog-btn-<\/span>\" <span style=\"color:#794938\">+<\/span> settings.buttons.cancel.<span style=\"color:#b4371f\">id<\/span>)<span style=\"color:#693a17\">.trigger<\/span>(<span style=\"color:#0b6125\">'click'<\/span>);\r\n                } <span style=\"color:#794938\">else<\/span> {\r\n                    \r\n                    <span style=\"color:#794938\">$<\/span>me.dissapear();\r\n                }\r\n            } <span style=\"color:#794938\">else<\/span> <span style=\"color:#794938\">if<\/span>(e.keyCode<span style=\"color:#794938\">===<\/span><span style=\"color:#811f24;font-weight:700\">13<\/span>) {\r\n\r\n                <span style=\"color:#794938\">if<\/span>(settings.buttons.confirm) {\r\n                    \r\n                    <span style=\"color:#691c97\">$<\/span>(\"<span style=\"color:#bf4f24\">#cwdialog-btn-<\/span>\" <span style=\"color:#794938\">+<\/span> settings.buttons.confirm.<span style=\"color:#b4371f\">id<\/span>)<span style=\"color:#693a17\">.trigger<\/span>(<span style=\"color:#0b6125\">'click'<\/span>);\r\n                } <span style=\"color:#794938\">else<\/span> {\r\n                    \r\n                    <span style=\"color:#794938\">$<\/span>me.dissapear();\r\n                }\r\n            }\r\n        });\r\n    };\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Add buttons<\/span>\r\n    <span style=\"color:#794938\">$<\/span><span style=\"color:#693a17\">.each<\/span>(settings.buttons, <span style=\"color:#a71d5d;font-style:italic\">function<\/span>(i, button) {\r\n        \r\n        <span style=\"color:#794938\">if<\/span>(button) {\r\n            \r\n            <span style=\"color:#5a525f;font-style:italic\">\/\/ Create button<\/span>\r\n            <span style=\"color:#a71d5d;font-style:italic\">var<\/span> <span style=\"color:#794938\">$<\/span>_button <span style=\"color:#794938\">=<\/span> <span style=\"color:#691c97\">$<\/span>('&lt;<span style=\"color:#bf4f24\">button<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"cwdialog-btn-' + button.id + '\"<\/span>>')<span style=\"color:#693a17\">.append<\/span>(button<span style=\"color:#693a17\">.text<\/span>);\r\n            \r\n            <span style=\"color:#5a525f;font-style:italic\">\/\/ Add custom class names<\/span>\r\n            <span style=\"color:#794938\">if<\/span>(button.<span style=\"color:#b4371f\">className<\/span>) {\r\n                <span style=\"color:#794938\">$<\/span>_button<span style=\"color:#693a17\">.addClass<\/span>(button.<span style=\"color:#b4371f\">className<\/span>);\r\n            }\r\n            \r\n            <span style=\"color:#5a525f;font-style:italic\">\/\/ Add to buttons<\/span>\r\n            <span style=\"color:#794938\">$<\/span>_buttons<span style=\"color:#693a17\">.append<\/span>(<span style=\"color:#794938\">$<\/span>_button);\r\n            \r\n            <span style=\"color:#5a525f;font-style:italic\">\/\/ Callback (or close) function<\/span>\r\n            <span style=\"color:#794938\">$<\/span>_button.on(<span style=\"color:#0b6125\">\"click\"<\/span>, <span style=\"color:#a71d5d;font-style:italic\">function<\/span>() {\r\n                \r\n                <span style=\"color:#5a525f;font-style:italic\">\/\/ Build response object<\/span>\r\n                <span style=\"color:#a71d5d;font-style:italic\">var<\/span> response <span style=\"color:#794938\">=<\/span> {\r\n                    clicked: button, <span style=\"color:#5a525f;font-style:italic\">\/\/ Pass back the object of the button that was clicked<\/span>\r\n                    input: (<span style=\"color:#794938\">$<\/span>_input<span style=\"color:#693a17\">.val<\/span>() ? <span style=\"color:#794938\">$<\/span>_input<span style=\"color:#693a17\">.val<\/span>() : <span style=\"color:#811f24;font-weight:700\">null<\/span>) <span style=\"color:#5a525f;font-style:italic\">\/\/ User inputted text<\/span>\r\n                };\r\n                \r\n                button.<span style=\"color:#b4371f\">action<\/span>( response );\r\n                <span style=\"color:#5a525f;font-style:italic\">\/\/$me.dissapear();<\/span>\r\n            });\r\n        }\r\n    });\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Disabled browser actions while open<\/span>\r\n    <span style=\"color:#794938\">if<\/span>(settings.override) {\r\n        <span style=\"color:#794938\">$<\/span><span style=\"color:#691c97\">window<\/span><span style=\"color:#693a17\">.bind<\/span>(<span style=\"color:#0b6125\">'beforeunload'<\/span>, <span style=\"color:#a71d5d;font-style:italic\">function<\/span>(e){ \r\n            <span style=\"color:#794938\">return<\/span> <span style=\"color:#0b6125\">\"An alert requires attention\"<\/span>;\r\n        });\r\n    }\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Adjust dimensions based on window<\/span>\r\n    <span style=\"color:#794938\">$<\/span>me.adjustWidth();\r\n    \r\n    <span style=\"color:#794938\">$<\/span><span style=\"color:#691c97\">window<\/span><span style=\"color:#693a17\">.resize<\/span>( <span style=\"color:#a71d5d;font-style:italic\">function<\/span>() { <span style=\"color:#794938\">$<\/span>me.adjustWidth() } );\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Append elements, show CWdialog<\/span>\r\n    <span style=\"color:#794938\">$<\/span>CWdialog<span style=\"color:#693a17\">.html<\/span>(<span style=\"color:#0b6125\">''<\/span>)<span style=\"color:#693a17\">.append<\/span>( <span style=\"color:#794938\">$<\/span>_inner<span style=\"color:#693a17\">.append<\/span>(<span style=\"color:#0b6125\">'&lt;div class=\"cwdialog-content\">'<\/span> <span style=\"color:#794938\">+<\/span> text <span style=\"color:#794938\">+<\/span> <span style=\"color:#0b6125\">'&lt;\/div>'<\/span>) )<span style=\"color:#693a17\">.append<\/span>(<span style=\"color:#794938\">$<\/span>_buttons);\r\n    <span style=\"color:#794938\">$<\/span>cA <span style=\"color:#794938\">=<\/span> <span style=\"color:#234a97\">this<\/span>;\r\n    \r\n    <span style=\"color:#794938\">if<\/span>(settings.<span style=\"color:#b4371f\">input<\/span>) {\r\n        <span style=\"color:#794938\">$<\/span>_inner.<span style=\"color:#693a17\">find<\/span>('<span style=\"color:#bf4f24\">.cwdialog-content<\/span>')<span style=\"color:#693a17\">.append<\/span>( <span style=\"color:#691c97\">$<\/span>('&lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"cwdialog-input\"<\/span>>')<span style=\"color:#693a17\">.append<\/span>( <span style=\"color:#794938\">$<\/span>_input ) );\r\n    }\r\n    \r\n    <span style=\"color:#794938\">$<\/span>overlay<span style=\"color:#693a17\">.fadeIn<\/span>(<span style=\"color:#811f24;font-weight:700\">300<\/span>);\r\n    <span style=\"color:#794938\">$<\/span>CWdialog<span style=\"color:#693a17\">.show<\/span>()<span style=\"color:#693a17\">.animate<\/span>({\r\n        top: <span style=\"color:#0b6125\">'20%'<\/span>\r\n    }, \r\n        settings.animation, \r\n        <span style=\"color:#a71d5d;font-style:italic\">function<\/span>() {\r\n            <span style=\"color:#794938\">$<\/span>me.keyPress();\r\n        }\r\n    );\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">\/\/ Focus on input<\/span>\r\n    <span style=\"color:#794938\">if<\/span>(settings.<span style=\"color:#b4371f\">input<\/span>) {\r\n        <span style=\"color:#794938\">$<\/span>_input<span style=\"color:#693a17\">.focus<\/span>();\r\n    }\r\n    \r\n} <span style=\"color:#5a525f;font-style:italic\">\/\/ end CWdialog();<\/span>\r\n<\/pre>\n<h2><code>cwdialog.css<\/code> File:<\/h2>\n<p> This file contains the following CSS codes.<\/p>\n<pre><span style=\"color:#bf4f24\">.cwdialog-overlay<\/span> {\r\n    <span style=\"color:#691c97\">background-color<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">#000<\/span>;\r\n    <span style=\"color:#691c97\">display<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n    <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">100<span style=\"color:#794938\">%<\/span><\/span>;\r\n    <span style=\"color:#691c97\">left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">fixed<\/span>;\r\n    <span style=\"color:#691c97\">top<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">z-index<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">9999<\/span>;\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">100<span style=\"color:#794938\">%<\/span><\/span>;\r\n    <span style=\"color:#691c97\">opacity<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0.7<\/span> <span style=\"color:#794938\">!important<\/span>;\r\n}\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> {\r\n    <span style=\"color:#691c97\">background<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#fff<\/span>;\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#aaa<\/span>;\r\n    <span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">15<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.2<\/span>);\r\n    -mox-<span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">15<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.2<\/span>);\r\n    -webkit-<span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">15<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.2<\/span>);\r\n    <span style=\"color:#691c97\">color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#111<\/span>;\r\n    <span style=\"color:#691c97\">display<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n    <span style=\"color:#691c97\">font-family<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">Arial<\/span>, <span style=\"color:#b4371f\">sans-serif<\/span>;\r\n    <span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">14<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">32<span style=\"color:#794938\">%<\/span><\/span> <span style=\"color:#794938\">!important<\/span>;\r\n    <span style=\"color:#691c97\">max-height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">90<span style=\"color:#794938\">%<\/span><\/span>;\r\n    <span style=\"color:#691c97\">overflow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">hidden<\/span>;\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">40<span style=\"color:#794938\">%<\/span><\/span> <span style=\"color:#794938\">!important<\/span>;\r\n    <span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">7<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">fixed<\/span>;\r\n    <span style=\"color:#691c97\">top<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">-100<span style=\"color:#794938\">%<\/span><\/span>;\r\n    <span style=\"color:#691c97\">z-index<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">9999<\/span>;\r\n}\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-inner<\/span> {\r\n    <span style=\"color:#691c97\">padding<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">20<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">20<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">30<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">20<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">font-family<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#0b6125\">'Comic Sans MS'<\/span>;\r\n    <span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">16<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#156A07<\/span>;\r\n}\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-input<\/span> {\r\n    <span style=\"color:#691c97\">margin-top<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">10<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">padding<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">10<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n}\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-input<\/span> <span style=\"color:#bf4f24\">input<\/span> {\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.3<\/span>);\r\n    <span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span>;\r\n    -moz-<span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span>;\r\n    -webkit-<span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">5<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.1<\/span>);\r\n    -mox-<span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">5<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.1<\/span>);\r\n    -webkit-<span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">5<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.1<\/span>);\r\n    <span style=\"color:#691c97\">display<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">block<\/span>;\r\n    <span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">13<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">margin<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span> <span style=\"color:#b4371f\">auto<\/span>;\r\n    <span style=\"color:#691c97\">padding<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">5<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">10<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">90<span style=\"color:#794938\">%<\/span><\/span>;\r\n}\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-input<\/span> <span style=\"color:#bf4f24\">input<\/span><span style=\"color:#bf4f24\">:focus<\/span> {\r\n    <span style=\"color:#691c97\">border-color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#01AEF0<\/span>;\r\n    <span style=\"color:#691c97\">outline<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">none<\/span>;\r\n}\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-buttons<\/span> {\r\n    <span style=\"color:#691c97\">border-top<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#e5e5e5<\/span>;\r\n    <span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">#fff<\/span>;\r\n    -moz-<span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">#fff<\/span>;\r\n    -webkit-<span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">#fff<\/span>;\r\n    <span style=\"color:#691c97\">padding<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">20<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">20<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">text-align<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">right<\/span>;\r\n}\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-buttons<\/span> <span style=\"color:#bf4f24\">button<\/span> {\r\n    <span style=\"color:#691c97\">background-color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#3276b1<\/span>;\r\n    <span style=\"color:#691c97\">border<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#285e8e<\/span>;\r\n    <span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span>;\r\n    -moz-<span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span>;\r\n    -webkit-<span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">cursor<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">pointer<\/span>;\r\n    <span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">14<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">margin<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">overflow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">hidden<\/span>;\r\n    <span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">5<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">font-family<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#0b6125\">'Comic Sans MS'<\/span>;\r\n    <span style=\"color:#691c97\">padding<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">6<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">12<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">color<\/span><span style=\"color:#794938\">:<\/span><span style=\"color:#811f24;font-weight:700\">#FFF<\/span>;\r\n}\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-buttons<\/span> <span style=\"color:#bf4f24\">button<\/span><span style=\"color:#bf4f24\">.blue<\/span> { <span style=\"color:#691c97\">background<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#01AEF0<\/span>; }\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-buttons<\/span> <span style=\"color:#bf4f24\">button<\/span><span style=\"color:#bf4f24\">.red<\/span> { <span style=\"color:#691c97\">background<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#D23A30<\/span>; }\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-buttons<\/span> <span style=\"color:#bf4f24\">button<\/span><span style=\"color:#bf4f24\">.blue<\/span>, <span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-buttons<\/span> <span style=\"color:#bf4f24\">button<\/span><span style=\"color:#bf4f24\">.red<\/span> {\r\n    <span style=\"color:#691c97\">color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#fff<\/span>;\r\n    <span style=\"color:#691c97\">text-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">-1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.4<\/span>);\r\n}\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-buttons<\/span> <span style=\"color:#bf4f24\">button<\/span><span style=\"color:#bf4f24\">:hover<\/span> {\r\n    <span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">255,255,255,0.5<\/span>), <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">3<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.4<\/span>);\r\n    -moz-<span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">255,255,255,0.5<\/span>), <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">3<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.4<\/span>);\r\n    -webkit-<span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">255,255,255,0.5<\/span>), <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">3<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.4<\/span>);\r\n}\r\n\r\n<span style=\"color:#bf4f24\">div<\/span><span style=\"color:#bf4f24\">.cwdialog<\/span> <span style=\"color:#bf4f24\">.cwdialog-buttons<\/span> <span style=\"color:#bf4f24\">button<\/span><span style=\"color:#bf4f24\">:active<\/span> {\r\n    <span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.5<\/span>), <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">255,255,255,0.8<\/span>);\r\n    -moz-<span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.5<\/span>), <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">255,255,255,0.8<\/span>);\r\n    -webkit-<span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">inset<\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">0,0,0,0.5<\/span>), <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#693a17\">rgba<\/span>(<span style=\"color:#811f24;font-weight:700\">255,255,255,0.8<\/span>);\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The alert window is very common and useful things for every web projects. We use the alert dialog box for display messages in the browser. All browsers have their default alert window style. Many times <\/p>\n","protected":false},"author":1,"featured_media":360,"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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[125,124,66,16],"class_list":["post-356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","tag-alertbox","tag-css","tag-javascript","tag-jquery","cat-6-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>Alert Dialog Box using jQuery and CSS - CodexWorld<\/title>\n<meta name=\"description\" content=\"Stylish alert dialog box using jQuery and CSS - Custom alert message popup using JavaScript, jQuery and CSS. View live demo and download script.\" \/>\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\/alert-dialog-box-using-jquery-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Alert Dialog Box using jQuery and CSS - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"Stylish alert dialog box using jQuery and CSS - Custom alert message popup using JavaScript, jQuery and CSS. View live demo and download script.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/\" \/>\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=\"2014-12-02T15:17:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-27T17:53:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/12\/alert-dialog-box-using-jquery-css1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"604\" \/>\n\t<meta property=\"og:image:height\" content=\"391\" \/>\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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"Alert Dialog Box using jQuery and CSS\",\"datePublished\":\"2014-12-02T15:17:32+00:00\",\"dateModified\":\"2016-04-27T17:53:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/\"},\"wordCount\":231,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/alert-dialog-box-using-jquery-css1.png\",\"keywords\":[\"AlertBox\",\"CSS\",\"JavaScript\",\"jQuery\"],\"articleSection\":[\"jQuery\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/\",\"name\":\"Alert Dialog Box using jQuery and CSS - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/alert-dialog-box-using-jquery-css1.png\",\"datePublished\":\"2014-12-02T15:17:32+00:00\",\"dateModified\":\"2016-04-27T17:53:08+00:00\",\"description\":\"Stylish alert dialog box using jQuery and CSS - Custom alert message popup using JavaScript, jQuery and CSS. View live demo and download script.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/alert-dialog-box-using-jquery-css1.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/alert-dialog-box-using-jquery-css1.png\",\"width\":604,\"height\":391,\"caption\":\"alert-dialog-box-using-jquery-css\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/alert-dialog-box-using-jquery-css\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Alert Dialog Box using jQuery and CSS\"}]},{\"@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":"Alert Dialog Box using jQuery and CSS - CodexWorld","description":"Stylish alert dialog box using jQuery and CSS - Custom alert message popup using JavaScript, jQuery and CSS. View live demo and download script.","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\/alert-dialog-box-using-jquery-css\/","og_locale":"en_US","og_type":"article","og_title":"Alert Dialog Box using jQuery and CSS - CodexWorld","og_description":"Stylish alert dialog box using jQuery and CSS - Custom alert message popup using JavaScript, jQuery and CSS. View live demo and download script.","og_url":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2014-12-02T15:17:32+00:00","article_modified_time":"2016-04-27T17:53:08+00:00","og_image":[{"width":604,"height":391,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/12\/alert-dialog-box-using-jquery-css1.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"Alert Dialog Box using jQuery and CSS","datePublished":"2014-12-02T15:17:32+00:00","dateModified":"2016-04-27T17:53:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/"},"wordCount":231,"commentCount":2,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/12\/alert-dialog-box-using-jquery-css1.png","keywords":["AlertBox","CSS","JavaScript","jQuery"],"articleSection":["jQuery"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/","url":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/","name":"Alert Dialog Box using jQuery and CSS - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/12\/alert-dialog-box-using-jquery-css1.png","datePublished":"2014-12-02T15:17:32+00:00","dateModified":"2016-04-27T17:53:08+00:00","description":"Stylish alert dialog box using jQuery and CSS - Custom alert message popup using JavaScript, jQuery and CSS. View live demo and download script.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/12\/alert-dialog-box-using-jquery-css1.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/12\/alert-dialog-box-using-jquery-css1.png","width":604,"height":391,"caption":"alert-dialog-box-using-jquery-css"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/alert-dialog-box-using-jquery-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"Alert Dialog Box using jQuery and CSS"}]},{"@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\/2014\/12\/alert-dialog-box-using-jquery-css1.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-5K","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/356","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=356"}],"version-history":[{"count":5,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/356\/revisions"}],"predecessor-version":[{"id":1437,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/356\/revisions\/1437"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/360"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}