Javascript Style font

<h1>FullJS family</h1> <script> var h1Color = "#ff0000", h1Size = "5.9vw", h1Weight = "bold", h1Family = "Arial, Helvetica, sans-serif"; function h1(id){ el = document.querySelector(id); el.style.color = h1Color; el.style.fontSize = h1Size; el.style.fontWeight = h1Weight; el.style.fontFamily = h1Family; }; h1("h1"); </script>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.