Are there any events that I can listen in iframes in another domain? For example, enter this page in domain 1:
<html> <body> <iframe src="domain2.com"></iframe> </body> </html>
What events can I listen to regarding the contents of an iframe?
Thank!
There are several ways to do this. In new browsers, you can use window.postMessage to communicate between domains between windows (also works for iframes):
https://developer.mozilla.org/en/DOM/window.postMessage
URL- iframe . iframe , : http://ajaxian.com/archives/cross-domain-iframe-communication-without-location-polling
, ( iframe IE), , , ... , , .
Source: https://habr.com/ru/post/1751095/More articles:What does python.exe do as an argument? - pythonWPF: use Snoop for Windows running from WinForms? - profilingDo you know any lexical analyzer or lexer in Qt? - c ++segfault при попытке доступа к члену строки класса - c++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1751094/how-to-go-about-adding-unit-tests-to-an-established-autotools-c-project&usg=ALkJrhgtj00MIqMJT1nwAfgAp5I6b-JjrQASP.NET 2.0 TreeView - OnSelectedNodeChanged not starting in user control - c #What are the limitations of Visual Web Developer Express 2010? - asp.netOracle dbms_job with invalid owner - oracleDrupal 6: date module and display only DATE values without TIME - dateIs there a Close command for dialog boxes in the WPF command framework? - commandAll Articles