jQuery append css link to iframe head
Posted
by
Micharch54
on Stack Overflow
See other posts from Stack Overflow
or by Micharch54
Published on 2011-01-03T18:50:46Z
Indexed on
2011/01/03
18:53 UTC
Read the original article
Hit count: 183
jQuery
I'm trying to append a css file to an iframe that is created on a page from a global script. I can access part of it, but for some reason I can't append to the head. It's not throwing errors either, which is frustrating.
<script type="text/javascript">
$(document).ready(function() {
$('#outline_text_ifr')
.contents()
.find('head')
.append('<link type="text/css" rel="stylesheet" href="/include/outline.css" media="all" />');
});
</script>
© Stack Overflow or respective owner