Women in Technology

Hear us Roar



Article:
  Using JavaScript to Create a Powerful GUI
Subject:   Better text formatting
Date:   2005-04-08 02:43:20
From:   RutgerB
I would use
document.execCommand('bold');
to make the text bold or italic or any other style, since this creates a 'toggle' effect too.
not sure if browers other then IE support this though.