質問

I have a button in the html:

<a id="comment">Comment</a>

When it is clicked I want the browser to focus on Facebook comments' textarea. I have:

$("#comment").click(function() {
        $("#fb-comments textarea").focus();
    });

but it doesn't work

役に立ちましたか?

解決

It's served via an Iframe from Facebook, so you cannot access the content due to the Same Origin Policy. (you cannot do this at all)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top