{"id":154,"date":"2011-05-25T11:13:05","date_gmt":"2011-05-25T11:13:05","guid":{"rendered":"http:\/\/javascript-tutor.net\/index.php\/"},"modified":"2017-11-20T22:43:04","modified_gmt":"2017-11-20T22:43:04","slug":"sample-scripts","status":"publish","type":"page","link":"https:\/\/javascript-tutor.net\/index.php\/sample-scripts\/","title":{"rendered":"JavaScript Examples"},"content":{"rendered":"<p>We have created these interesting JavaScript examples to illustrate the power and versatility of JavaScript.\u00a0 Please feel free to use and modify the JavaScript examples as long as you include the following copyright notice in your script.<\/p>\n<pre>Copyright\u00a92008 Dr.Liew Voon Kiong. All rights reserved<\/pre>\n<ol>\n<li><a href=\"http:\/\/javascript-tutor.net\/Javascript_Samples\/options.html\">Change Options Dynamically<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/Javascript_Samples\/validate.html\">Validation of Clicked Items<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/index.php\/a-selection-box\/\">A Selection Box<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/JSample\/Js_random.htm\">Random Numbers Generator<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/index.php\/graphical-dice\/\">Graphical Dice<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/java_tutor\/dice.htm\">Graphical Dice Using Frames<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/index.php\/animated-digital-dice\/\">Animated Digital Dice<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/index.php\/animated-dice\/\">Animated Dice<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/index.php\/animated-butterfly\/\">Animated Butterfly<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/java_tutor\/random.htm\">Random Number Generation<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/Jsample\/countdown.html\">Countdown Timer<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/java_tutor\/Javascrpt_Example18.3.htm\">Email Sending and Validation Script<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/Javascript_Samples\/clock\/clock.html\">JavaScript Clock<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/Javascript_Samples\/blackjack\/blackjack.html\">Blackjack<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/Javascript_Samples\/slideshow.htm\">SlideShow<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/index.php\/playing-music-using-javascript\/\">Playing Music<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/jSample\/kidmath.html\">Simple Calculator<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/jSample\/kidmath2.html\">Math drill for Kid<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/index.php\/pythagoras-theorem\/\">Pythagoras Theorem<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/index.php\/javascript-quadratic\/\">Quadratic Curve<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/index.php\/future-value-calculator\/\">Future Value Calculator<\/a><\/li>\n<li><a href=\"http:\/\/javascript-tutor.net\/index.php\/playing-video-using-javascript\/\">Video Clip Player<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>We have created these interesting JavaScript examples to illustrate the power and versatility of JavaScript.\u00a0 Please feel free to use and modify the JavaScript examples as long as you include the following copyright notice in your script. Copyright\u00a92008 Dr.Liew Voon Kiong. All rights reserved Change Options Dynamically Validation of Clicked Items A Selection Box Random &hellip; <a href=\"https:\/\/javascript-tutor.net\/index.php\/sample-scripts\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;JavaScript Examples&#8221;<\/span><\/a><\/p>\n","protected":false},"author":35895,"featured_media":0,"parent":0,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-154","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaScript Examples - Learn JavaScript Online | Free Interactive JavaScript Tutorials<\/title>\n<meta name=\"description\" content=\"These JavaScript samples can be used to add interactivity to your web pages.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/javascript-tutor.net\/jSample\/jsample.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Examples - Learn JavaScript Online | Free Interactive JavaScript Tutorials\" \/>\n<meta property=\"og:description\" content=\"These JavaScript samples can be used to add interactivity to your web pages.\" \/>\n<meta property=\"og:url\" content=\"http:\/\/javascript-tutor.net\/jSample\/jsample.html\" \/>\n<meta property=\"og:site_name\" content=\"Learn JavaScript Online | Free Interactive JavaScript Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-20T22:43:04+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/javascript-tutor.net\/index.php\/sample-scripts\/\",\"url\":\"http:\/\/javascript-tutor.net\/jSample\/jsample.html\",\"name\":\"JavaScript Examples - Learn JavaScript Online | Free Interactive JavaScript Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/javascript-tutor.net\/#website\"},\"datePublished\":\"2011-05-25T11:13:05+00:00\",\"dateModified\":\"2017-11-20T22:43:04+00:00\",\"description\":\"These JavaScript samples can be used to add interactivity to your web pages.\",\"breadcrumb\":{\"@id\":\"http:\/\/javascript-tutor.net\/jSample\/jsample.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/javascript-tutor.net\/jSample\/jsample.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/javascript-tutor.net\/jSample\/jsample.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/javascript-tutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/javascript-tutor.net\/#website\",\"url\":\"https:\/\/javascript-tutor.net\/\",\"name\":\"Learn JavaScript Online | Free Interactive JavaScript Tutorials\",\"description\":\"Master JavaScript with free, interactive tutorials for beginners and experienced coders. Practice live coding and visualize how JavaScript works step by step.\",\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Examples - Learn JavaScript Online | Free Interactive JavaScript Tutorials","description":"These JavaScript samples can be used to add interactivity to your web pages.","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":"http:\/\/javascript-tutor.net\/jSample\/jsample.html","og_locale":"en_US","og_type":"article","og_title":"JavaScript Examples - Learn JavaScript Online | Free Interactive JavaScript Tutorials","og_description":"These JavaScript samples can be used to add interactivity to your web pages.","og_url":"http:\/\/javascript-tutor.net\/jSample\/jsample.html","og_site_name":"Learn JavaScript Online | Free Interactive JavaScript Tutorials","article_modified_time":"2017-11-20T22:43:04+00:00","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/javascript-tutor.net\/index.php\/sample-scripts\/","url":"http:\/\/javascript-tutor.net\/jSample\/jsample.html","name":"JavaScript Examples - Learn JavaScript Online | Free Interactive JavaScript Tutorials","isPartOf":{"@id":"https:\/\/javascript-tutor.net\/#website"},"datePublished":"2011-05-25T11:13:05+00:00","dateModified":"2017-11-20T22:43:04+00:00","description":"These JavaScript samples can be used to add interactivity to your web pages.","breadcrumb":{"@id":"http:\/\/javascript-tutor.net\/jSample\/jsample.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/javascript-tutor.net\/jSample\/jsample.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/javascript-tutor.net\/jSample\/jsample.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/javascript-tutor.net\/"},{"@type":"ListItem","position":2,"name":"JavaScript Examples"}]},{"@type":"WebSite","@id":"https:\/\/javascript-tutor.net\/#website","url":"https:\/\/javascript-tutor.net\/","name":"Learn JavaScript Online | Free Interactive JavaScript Tutorials","description":"Master JavaScript with free, interactive tutorials for beginners and experienced coders. Practice live coding and visualize how JavaScript works step by step.","inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/pages\/154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/users\/35895"}],"replies":[{"embeddable":true,"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":59,"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/pages\/154\/revisions"}],"predecessor-version":[{"id":2475,"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/pages\/154\/revisions\/2475"}],"wp:attachment":[{"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}