Reputation: 475
I'd like to set focus to a textfield on my website. There are 2 problems:
This is the HTML code of the textfield which i want to focus()
<div class="UIComposer_InputShadow"><textarea placeholder="Discuss this event" onfocus="window.UIComposer && UIComposer.focusInstance("c4d1cd73d90f2f8884818513");" name="status" id="c4d1cd73d90f2f8884818513_input" title="Discuss this event" class="UIComposer_TextArea DOMControl_placeholder">Discuss this event</textarea></div>
Note that "c4d1cd73d90f2f8884818513_input" and c4d1cd73d90f2f8884818513 are randomly generated values.
It would be so great if anyone could help me out with this,
Thanks so much! ;)
Greetz,
Camillo
Upvotes: 0
Views: 278
Reputation: 449613
Sorry, there is no way you can do this: The Same Origin Policy prevents you from any and all access to that external iframe.
Upvotes: 5
Reputation: 2872
I'm guessing this is for a Facebook plugin. Even if you could do this, I doubt Facebook wants you manipulating elements within their plugin.
Upvotes: 1