Jump to content

setting focus in an iframe


sillysillysilly

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.