Apply style to a browser

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

Apply style to a browser

Post by poleta33 »

Hi

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...
Post Reply