Search tutorials
If you want to check which properties belong to an object you can check them like this;
var output="";
var mm=new myFunction;
function listProps(){
function myFunction(){
this.x="aaa";
}
mm.y="bbb";
mm.z="ccc";
for(var i in mm) output+=i+"="+mm[i]+".";
}
output = "x=aaa.y=bbb.z=ccc."
| » Level Intermediate |
|
Added: 2001-06-22 Rating: 8 Votes: 30 |
| » Author |
| No details available. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!