Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
118
rated 0 times [  124] [ 6]  / answers: 1 / hits: 40002  / 11 Years ago, sun, april 28, 2013, 12:00:00

I have multiple iframes in a page. Now I have one message event listener for the page, which gets the messages from all of the iframes. I have a workaround to know from which iframe the message is coming.



I would like to make event listeners for each iframe separately. Is this possible?


More From » html

 Answers
9

No, it's not possible. Best you can do is to have a single handler that routes received messages to helper handlers based on the origin of the message sender.


[#78554] Saturday, April 27, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
payne

Total Points: 527
Total Questions: 108
Total Answers: 88

Location: Tajikistan
Member since Thu, Apr 14, 2022
2 Years ago
;