Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript "Cheat" sheet

Status
Not open for further replies.

ProfReynolds

Programmer
Sep 12, 2001
96
0
0
US
Some time ago I found a hierarcial Javascript .doc that showed all of the objects and methods within those object.

I laminated it and used it for a couple of years.

I think it was written for version 1.0.0 of JS.

Anyone have something like this that is current?
 
Why not do it yourself?

Code:
for(var i in document) {
document.write("document."+i);
if(typeof(document[i]=="function") document.write("()");
}

You might also want to consider buying the JavaScript Bible.

Hope that helps!

Happy coding! :)
 
Whoops - little typo! Change this line:

if(typeof(document=="function") document.write("()");

...to this:

if(typeof(document)=="function") document.write("()");

Happy coding! :)
 
I really like Wrox Publishing Professional JavaScript. It isn't a cheat sheet per say but once you start knowing the language really well this book covers advanced JS techniques with excellent examples. A worthwhile book! Gary Haran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top