
{"id":16596,"date":"2017-01-14T18:18:29","date_gmt":"2017-01-14T18:18:29","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=16596"},"modified":"2017-01-14T18:18:29","modified_gmt":"2017-01-14T18:18:29","slug":"adding-text-to-html-element-using-javascript","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2017\/01\/14\/adding-text-to-html-element-using-javascript\/","title":{"rendered":"Adding  text to html element using JavaScript"},"content":{"rendered":"<p><code><br \/>\n&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html lang=\"en\"&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta charset=\"utf-8\" \/&gt;<br \/>\n&lt;title&gt;Chapter 1, Example 3&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;code id=\"results\"&gt;&lt;\/code&gt;<br \/>\n&lt;script&gt;<br \/>\ndocument.getElementById(\"results\").innerHTML = \"Hello World!\";<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<br \/>\n<\/code><\/p>\n<p>Key source : Beginning JavaScript, 5th Edition (wrox)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;!DOCTYPE html&gt; &lt;html lang=&#8221;en&#8221;&gt; &lt;head&gt; &lt;meta charset=&#8221;utf-8&#8243; \/&gt; &lt;title&gt;Chapter 1, Example 3&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;code id=&#8221;results&#8221;&gt;&lt;\/code&gt; &lt;script&gt; document.getElementById(&#8220;results&#8221;).innerHTML = &#8220;Hello World!&#8221;; &lt;\/script&gt; &lt;\/body&gt; &lt;\/html&gt; Key source : Beginning JavaScript, 5th Edition (wrox)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[158,91],"tags":[937],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16596"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=16596"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16596\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=16596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=16596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=16596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}