Reputation: 21
I am using a multiline text in xul and in I need to display a string. however part of the string needs to be in italics and if a use the .italics() method in javascript all that's displayed is the Blink! tags next to the string. Is there another way to make the string italics using javascript?
Upvotes: 0
Views: 2083
Reputation: 3093
I am not positive if this works on a XUL-document, but you could try the style-object:
document.getElementById("myString").style.fontStyle = "italic";
Upvotes: 0
Reputation: 6741
<i>
and </i>
, this only works in HTML not XUL.<textbox>
element in XUL? If so this wrapper doesn't work with rich text. try some other element to contain your text. Upvotes: 1