Skip to content

Think

Different!

  • About
  • Contact
  • Nice to See You!
  • Home
  • Contact

Code9

Click the “Try it” button to create a BUTTON element with a “Click me” text.

Try it

function myFunction() {
var x = document.createElement(“BUTTON”);
var t = document.createTextNode(“Click me”);
x.appendChild(t);
document.body.appendChild(x);
}

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
Like Loading...

Search

Create a website or blog at WordPress.com
  • Subscribe Subscribed
    Think

    Have a WordPress.com account? Log in now.

  • Think
    Copy shortlinkView post in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar
%d
    Create your own website, free on WordPress.com.Create your own website.
    Start free