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

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.

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.