1

I know about the same origin policy, however I wonder if this is possible: I'm having an iframe with an src from another website on my site.

Inside of the iframe is input button with name="sendButton", I wonder if i can use jQuery to select this sendButton and on the onClick an alert should pop up.

Is this possible? Same origin policy?

$('input[name=sendButton]').live('click', function(e) {
    alert('hello');
});

Thank you for your help.

1
  • 2
    As far as I know, you are not able to apply jQuery to buttons (or other elements) if it comes from an external source / different domain. Commented Sep 8, 2010 at 23:29

1 Answer 1

1

is this possible?

No.

same origin policy?

Yes.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.