Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting keyPress inside an IFRAME using jQuery

Tags:

jquery

can i detecting keyPress inside an IFRAME using jQuery? when user paste any copy text in ifram i want to check this text, Is this text contain HTML tags or not.

Please help me.

<iframe class="abc">
 <html>
  <head>
  </head>
  <body>
    some text here(This text may contain html tag)
  </body>
  </html>
</iframe>
like image 538
Pankaj Avatar asked Apr 28 '26 12:04

Pankaj


1 Answers

is the iframe pointing to the same domain as your main site? if it is pointing to a domain that is not yours, then you cannot do this.

like image 133
mkoryak Avatar answered May 01 '26 05:05

mkoryak