Firefox Scratchpad Javascript Primer Tutorial

Firefox Scratchpad Javascript Primer Tutorial

Firefox Scratchpad Javascript Primer Tutorial

Today’s tutorial looks at the scenario of webpages “virtually” just made up of Javascript … “virtually” because we’ve stopped short of turning this into a bookmarklet. Today we write the Tic Tac Toe game in Javascript “virtually” only.

If you don’t have a bookmarklet, how do you test Javascript on its own? Well, you’ve probably guessed by this blog posting’s title, that one alternative here is the Firefox browser’s Scratchpad functionality, available off its Tools menu.

By Scratchpad we do not mean an iPad set aside for your dog to scratch itself on … but why aren’t you thinking of the pooch … where’s the inventor of “PoochPad” or “itPad”? … but rather a good tool to test the workings of your Javascript to validate it and check its workings.

For today’s tutorial also make use of the Javascript function document.createElement() as the way the Javascript gets to create the Tic Tac Toe board (the HTML you have when you aren’t “really” “virtually” having HTML).

You can download Javascript source code and rename to tictactoe.js supervised by the puny tictactoe.html as you see fit.

Should you find Tac Tac Toe (or even Noughts and Crosses) addictive you should see this … amazing, really amazing!

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Tutorials and tagged , , , , , , , , . Bookmark the permalink.

7 Responses to Firefox Scratchpad Javascript Primer Tutorial

  1. Anna Waiine says:

    You really make it appear really easy along with your presentation but I in finding this matter to be actually one thing which I think I’d by no means understand. It seems too complicated and very vast for me. I am having a look ahead to your next publish, I will try to get the hold of it!

  2. May Tania says:

    of course like your web-site but you have to take a look at the spelling on quite a few of your posts. Many of them are rife with spelling issues and I to find it very bothersome to inform the reality however I will surely come back again.

  3. Leia Paris says:

    Great website. Plenty of useful info here. I’m sending it to some pals ans also sharing in delicious. And certainly, thank you on your sweat!

  4. Dino Stow says:

    I really enjoy looking through on this web site , it contains fantastic posts . “One doesn’t discover new lands without consenting to lose sight of the shore for a very long time.” by Andre Gide.

  5. Thanks for that, I really take pleasure in the assistance. We certainly have 20+ years’ expertise in the IT health industry most notably in website not to mention Advertising campaign which then will assist unbelievably.

  6. Just a smiling visitant here to share the love (:, btw outstanding layout. “He profits most who serves best.” by Arthur F. Sheldon.

  7. housse says:

    Hi to all, since I am truly keen of reading this website’s post to be updated daily.
    It consists of pleasant information.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>