Basic Object Structure and Calling for JavaScript
I'm trying to do something very simple. That is, create an object with a
function I can call from somewhere else. I must be missing something. The
code I'm trying right now is:
function Object1() {
function Function1() {
alert("hello");
}
}
Object1.Function1();
No comments:
Post a Comment