sillysillysilly Posted July 22, 2009 Share Posted July 22, 2009 I have an iframe that I am loading a form from another website into. What I want to do is to automatically set the focus on a button in their form. I can find the value of the form but cannot seem to set the focus then cause a click to occur. I can find buttons in my parent frame just fine and set focus and click buttons. I am using a syntax like this. window.frames["formFrame"].focus(); $('#Submit').window.frames["formFrame"].focus(); any ideas. Link to comment https://forums.phpfreaks.com/topic/167028-setting-focus-in-an-iframe/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.