javascript Programming Glossary: simulateclick
Simulate Click Javascript http://stackoverflow.com/questions/2705583/simulate-click-javascript Currently I have script type text javascript function simulateClick control if document.all control.click else var evObj document.createEvent.. id mytest1 test 1 a br script type text javascript simulateClick document.getElementById 'mytest1' script But it's not working..
Simulating click with javascript on document http://stackoverflow.com/questions/2890921/simulating-click-with-javascript-on-document happens to have a link then this will be pressed function simulateClick x y var evt window.createEvent MouseEvents evt.initMouseEvent.. window.dispatchEvent should do the trick. script function simulateClick var evt document.createEvent Events evt.initEvent click true.. 'click' function alert 'test' false script button onclick simulateClick Go button Or... with extra MouseEvents information script function..
|