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

2 Answers2

1

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

CamW
  • 3,223
  • 24
  • 34
1

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

Corey Rothwell
  • 394
  • 2
  • 9