Hello, I have such a problem: Javascript and jquery in my iframe do not work. I connected the library, but still does not want to work. How to fix?

Update

I created a page, wrote it in iframe, but scripts do not work in iframe. I try to open the page itself, everything works there, but iframe is not.

  • @ Yura Spivak, Try to write more detailed questions. Explain what you see as a problem, how to reproduce it, etc. According to the forum rules, questions should not be reduced to solving or completing student assignments. Please clarify what you have done yourself and what did not work out. - Yura Ivanov
  • in created with the help of js iframe? assign it to the window jQuery - zb '
  • I created a page, wrote it in iframe, but scripts do not work in iframe. I try to open the page itself, everything works there, but iframe is not there - Yuri
  • writes something to the console? noscript is not worth any? Is the page local or on the http server? - zb 'jul
  • page is not on the server, it is located on LAN. Nothing writes, just does not work - Yuri

1 answer 1

I will assume that you are opening a page in a frame from another domain, in which case nothing will work and will not, this is a security restriction.

  • one
    A strange assumption ... not even true, jsfiddle.net/oceog/9ysvj - zb '
  • page is not on the server, it is located on LAN. Nothing writes, just does not work - Yuri