0

I have a javascript function to validate user's input in input or textarea field, I also want to apply these functions on the Iframe's textarea. Is it possible to run the parent's javascript on an iframe with another domain. If yes, how can I do it. Sorry for my newbie question. Thanks in advance

5

2 Answers 2

1

You can't do this as a result of the Same Origin Policy http://en.wikipedia.org/wiki/Same_origin_policy

answered Oct 23, 2013 at 7:16
Sign up to request clarification or add additional context in comments.

Comments

1

Unfortunately if the source of the iframe is on a different domain you won't be able to interact with the content.

answered Oct 23, 2013 at 7:17

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.