I've got an ASPX page with an iframe that has another ASPX page. When the "Next" button is clicked on the main page, I want it to click the "Save" html input button on the iframe page. On the back end of the main page, I have the following line:
btnNext.Attribu tes.Add("onClic k", "window.fra mes[0].document.getEl ementById('btnS ave').click();" )
This works fine in IE. It also works fine in FireFox if I add a window.alert after the click. Without the window.alert, it doesn't work in FireFox. What am I missing?
btnNext.Attribu tes.Add("onClic k", "window.fra mes[0].document.getEl ementById('btnS ave').click();" )
This works fine in IE. It also works fine in FireFox if I add a window.alert after the click. Without the window.alert, it doesn't work in FireFox. What am I missing?
Comment