javascript - add meta tag on Iframe parent head element -


i have need add meta tag element on iframe parent head element, had tried

window.parent.$('head').append('sometext');

this 1 working on source file , iframe file in same folder, not working on cross domain, causes

window.parent.$ not function issue.

$('head', window.parent.document).append("test") 

you'll want use .data() instead of .append() though http://api.jquery.com/data/

the second argument of $() search context, default document.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -