From:  harishdixit1@gmail.com
Date:  31 Oct 2006 16:56:02 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.embedding
Subject:  

Call Javscript function

NNTP-Posting-Host:  203.115.119.67

Hello friends i developed a tollbar for Firefox browser. Now This
toolbar contains a menu item. A web page will be opened by the user of
the Toolbar. This Web page source code has included many .JS fiels in
it. These JS files defined various functions , Now i want to call these
functions from my toolbar menu command. How can i do that? I know
function name which i have to call.

I tried to call function directly by its name but it is giving error
that this function is not exist?

How should i call that function.

I got success to implement same functionality for IE by using
IHTMLWindow2 interface method
execScript which can execute javascript code.