How to access parent.document elements using JQuery in firefox?

后端 未结 4 1583
春和景丽
春和景丽 2020-12-24 06:01

For example:

$(elementid,top.document).attr(attributeName)

or

$(elementid,parent.document).attr(attributeName)
4条回答
  •  长情又很酷
    2020-12-24 06:55

    And don't forget document.domain = "yourdomain.com" before running $(selector, parent.document) because I ran into "access denied" issues just like location.href for iframes

提交回复
热议问题