Apply style to a browser

Talk about add-ons and extension development.
Posts: 116
Joined: October 14th, 2004, 2:06 pm

Post Posted February 1st, 2017, 8:05 am


in my xul I've defined a browser like that :
Code: Select all
<browser id="content" type="content-primary" name="content" src="about:blank" flex="1" disablehistory="true" disablesecurity="true"/>

I've fetched some html to it like that :
Code: Select all
var iframeDoc = document.getElementById("content");
iframeDoc.contentDocument.body.innerHTML = "<div class="paragraph">Notes</div>";

now I want to define this class "paragraph" in my browser head, but I don't know how to do... the best would be to add a stylesheet "chrome://... test.css" to this browser...

Return to Extension Development

Who is online

Users browsing this forum: No registered users and 1 guest