JavaScript

I've got this book on JavaScript(Wrox beginning JavaScript) it's good but...
I cant run my code, on the instructions (for windows) i edit in the text editor and open with Internet explorer, I tried that in mac and it doesnt work

Does anyone know how to run my JavaScript/HTML code on a mac??

----------------------------------------------------
Solution:
What you need to do, is while in textedit, go to the "Format" menu and choose "Make plain text", save it with the extension .html and open! ^^

First thing that comes to mind is that the line endings are incorrect. Another thing that comes to mind is that I wouldn't bother with Internet Explorer for anything since it sucks so bad -- especially on Windows, but also on the Mac. The last thing that comes to mind is, are you sure your Javascript is correct?

And by what i see on windows the internet explorer(which i also agree that it sucks) when opens a file with HTML, it reads the code and interprets it(including the JavaScript in the code), but it doesn't do that if in the options menu it's marked not to do, in that case it just opens the text file with the code on it(this is what happens in the mac too, with firefox and safari).

the problem isnt with the code or the format.

I just need to activate something to interpret the code(HTML/JS) and execute it, or maybe an app that also does that.

What you need to do, is while in textedit, go to the "Format" menu and choose "Make plain text". That way, when you save it, it will be plain text. You can then change the extension to .html and open it with a web browser.