954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

help fixing my javascript code

Hang Man man Instructions: Try to figure out the word. You get 7 guesses and then he's dead. (Sorry about the gratuitous violence)


Type a letter

and

Used Letters





Attachments 1.zip (16.87KB)
ajcoder
Newbie Poster
16 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

You haven't explained what your issue is.

As for debugging you can use the following:

In Firefox - Firebug
IN IE - Web Developer Toolbar
In Chrome - Developer Tools

stbuchok
Master Poster
730 posts since May 2011
Reputation Points: 120
Solved Threads: 93
 

This is fixed. I didn't know what was wrong with it. It just wouldn't work. I used the firebug to find the issues. Issues fixed below.

usedLetterBoxes(); //updated from Boxs to Boxes
document.getElementById('wordBoxes').innerHTML = tempText; //changed from Boxs to Boxes
alert ("You're Dead\nThe word was " + word); // update from Your to you're and made word lowercase

ajcoder
Newbie Poster
16 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You