WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Finding functions, mikael bergkvist, August 31, 2003
     Re:Finding functions, mikael bergkvist, August 31, 2003
         Re:Finding functions, Erik Arvidsson, September 1, 2003
             Re:Finding functions, mikael bergkvist, September 1, 2003
                 Re:Finding functions, JT_Kiwi, September 2, 2003
                     Re:Finding functions, mikael bergkvist, September 2, 2003
                         Re:Finding functions, Erik Arvidsson, September 2, 2003
                             Re:Finding functions, JT_Kiwi, September 3, 2003

Subject: Re:Finding functions From: Erik Arvidsson Date: September 2, 2003
Some minor errors. typeof is an operator (so the parenthesis are optional just like for ++) and the o should be lower case

var key;
var a = [];
for (key in window)
if (typeof window[key] == 'function')
a.push(window[key]);
// a now contains all functions

erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX