Subj : Re: How execute a "onClick" javascript call ? To : netscape.public.mozilla.jseng From : Ondra Zizka Date : Sat Nov 27 2004 04:13 pm 1) function titi() { var i = "parameters"; return window.open('http://www.mozilla.org?'+i); } .... 2) I don't understand what you mean, but generally I wouldn't recommend using eval* functions as it's quite bad prog technique. You can't force the browser to act like if the user clicked, but if you have something registered, eg. document.onclick = function(){...}, you can call document.onclick(); "Béatrice Philippe" píše v diskusním příspěvku news:cmin6h$j1r1@ripley.netscape.com... | Hello ! | i read Brendan documentation many times and i'm still asking some questions | : | | 1) is there any solution to interpret a javascript call without executing | it, and retrieve some | informations after this call ? for example, say we have this following | function: | Function titi() { | var i = "parameters" | Window.open('http://www.mozilla.org?'+i); | return; | } | and somehere, we have : " | is it possible to call titi() and retrieve the resolved statement | "window.open('http://www.mozilla.org?parameters')" ? | | 2) what's the best solution to execute a "onClick" ? i tried with | "evaluateString()" method, but Mozilla doesn't seem to be notified of any | change (though my client window changed after evaluating onClick). I can't | retrieve any Dom nor frame tree with nsIWebProgressListener . | | Thank you for your help, it's very important. | | -- | Béatrice Philippe | | beatrice.derbez.bd@wanadoo.fr | | .