Search code examples
javascriptjqueryparent

Calling top.document


function RemoveOZELMESAJ(){
$('#OZELMESAJ').remove();
}

this using in iframe i want this work in top how i can work like this usage in jquery is it possible?

$(".loading",top.document)
RemoveOZELMESAJ() > working parente top ?

Solution

  • $('.loading', window.parent.document)