promotion image of download ymail app

How to show a javascript program in a html page?

Like flash browser games but with javascript.

1 Answer

  • 9 months ago

    Use HTML5's canvas element to make a rectangle that you can display graphics on. That's basically a 2D array of pixels. The, use JavaScript to draw on that canvas.

    If you want to spend a couple weeks learning about this, you can still take the HTML5 Canvas free course at Udacity. It's not in the catalog any longer though, so I'll post a link to it in comments.

    There are also lessons on canvas graphics in the Khan Academy computer programming videos.

    • husoski
      Lv 7
      9 months agoReport

      HTML5 Canvas free course:
      Khan Academy free computer programming lessons:

    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.