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:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Like Loading...

Search

Create a website or blog at WordPress.com
  • Subscribe Subscribed
    • Think
    • Already have a WordPress.com account? Log in now.
    • Think
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
%d
    Design a site like this with WordPress.com
    Get started