javierdl Posted October 17, 2012 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 Link to comment Share on other sites More sharing options...
niche Posted October 17, 2012 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 Link to comment Share on other sites More sharing options...
eTianbun Posted October 17, 2012 Share Posted October 17, 2012 (edited) e.g: newPopUp=window.createPopup()newPopUp.document.body.style.fontWeight='value' Edited October 17, 2012 by CodeName Link to comment Share on other sites More sharing options...
thescientist Posted October 24, 2012 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now