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: mikael bergkvist Date: August 31, 2003

Nevermind, I got it..

function findScripts()
{
var x="";
for(i=0;i < document.scripts.length;i++)
 {
 x+=document.scripts[i].text;
 }
alert(x);
}

From: mikael bergkvist
Sent: August 31, 2003
Subject: Re:Finding functions

If I have a function like this,

function test(){alert('Hi');}

and then use an alert like this,

alert(test);

it returns the code of the function, but how can I find all Javascript-functions on page, so I can step through them all one by one?





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