{"id":193,"date":"2013-06-19T16:53:23","date_gmt":"2013-06-19T23:53:23","guid":{"rendered":"http:\/\/courses.haigarmen.com\/isma309\/?p=193"},"modified":"2013-06-19T16:53:23","modified_gmt":"2013-06-19T23:53:23","slug":"message-boxes","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/isma309\/message-boxes\/","title":{"rendered":"Message Boxes"},"content":{"rendered":"<h3>Message Boxes<\/h3>\n<p>There are three message boxes: alert, confirm, and prompt.<\/p>\n<h4>Alert<\/h4>\n<p>Let\u2019s look at the first one:<\/p>\n<pre lang=\"HTML\">\r\n\t\t<body>\r\n\t\t\t<script>\r\n\t\t\t\twindow.alert(\"Welcome to my site!\")\r\n\t\t\t<\/script>\r\n\t\t<\/body>\r\n<\/pre>\n<p>You can put whatever you want inside the quotation marks.<\/p>\n<h4>Confirm<\/h4>\n<p>An example for confirm box:<\/p>\n<pre lang=\"HTML\">\r\n\t\twindow.confirm(\"Are you sure you want to quit?\")\r\n\t<\/pre>\n<h4>Prompt<\/h4>\n<p>Prompt box is used to allow a user to enter something according the promotion:<\/p>\n<pre lang=\"HTML\">\r\n\t\twindow.prompt(\"please enter user name\")\r\n\t<\/pre>\n<p>In all our examples above, we wrote the box methods as window.alert(). Actually, we could simply write the following instead as:<\/p>\n<pre lang=\"HTML\">\r\n\talert()\r\n\tconfirm()\r\n\tprompt()\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Message Boxes There are three message boxes: alert, confirm, and prompt. Alert Let\u2019s look at the first one: You can put whatever you want inside the quotation marks. Confirm An example for confirm box: window.confirm(&#8220;Are you sure you want to quit?&#8221;) Prompt Prompt box is used to allow a user to enter something according the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-exercises","category-javascript"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":1,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"predecessor-version":[{"id":194,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/posts\/193\/revisions\/194"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}