lets say i have:
<input type="button" onClick="javascript:func()">
and now i wont to activate that button event in the if statement of the
function foo that i previously wrote.
I'm think it can't be done in javascript.... but i wont to be sure.
thanks again.
> event to who? the browser, javascript, the server?
>
[quoted text clipped - 13 lines]
> >
> > thanks.
Bruce Barker - 08 Jun 2005 17:01 GMT
<input type="button" id="myButton" onClick="javascript:func()">
<script>
document.getElementById("myButton").onclick(); // fire onclick event
</script>
-- bruce (sqlwork.com)
> lets say i have:
> <input type="button" onClick="javascript:func()">
[quoted text clipped - 22 lines]
>> >
>> > thanks.
e_yossi - 09 Jun 2005 07:41 GMT
first, thank you very much Bruce Barker whoever you are you realy helped me.
but, i have another quastion...
what if it is an alert?
assume i wrote alert("blablabla"); and now i wont to simulate a keboard ENTER
to eliminate this alert (without the intervention of the user) is there a
mechanism
in javascript that enable that?
thanks.
> <input type="button" id="myButton" onClick="javascript:func()">
>
[quoted text clipped - 30 lines]
> >> >
> >> > thanks.