javierdl 2 Posted October 17, 2012 Report Share Posted October 17, 2012 Hi all, I'm a total rookie with JS, I know HTML & CSS though.I was hoping someone could tell me how formatting of text is done in JS.More specifically, I am trying to use this JS popup window, but I would love to be able to format its contents (font family, font weight, window padding, etc). Thanks in advance guys JDL Quote Link to post Share on other sites
niche 140 Posted October 17, 2012 Report Share Posted October 17, 2012 (edited) This will work for you http://www.w3schools..._style_font.asp Please post your code as far as you can get it and you'll get some help. Edited October 17, 2012 by niche Quote Link to post Share on other sites
eTianbun 51 Posted October 17, 2012 Report Share Posted October 17, 2012 (edited) e.g: newPopUp=window.createPopup()newPopUp.document.body.style.fontWeight='value' Edited October 17, 2012 by CodeName Quote Link to post Share on other sites
thescientist 231 Posted October 24, 2012 Report Share Posted October 24, 2012 an even better option would be to use CSS to create the styles you want, and simply give it the class/id name. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.