Получает текущий IFRAME ID

window.frameElement.id

 

рекомендация

отwww.cnblogs.com/xiaostudy/p/10938957.html