I\'m new in javascript and i don\'t exactly understand how to modify this code to style a div:
function getParameters() {
var searchString = document.getElemen
With the javascript function styleDiv you can pass the url string of style (style=value) and the targets (DOM element tag name, id, class). It will find those targets, and set styles.
Kudos to Banana for using element.style[property] = value, i didn't know about it.
jsFiddle link
Style a Div
Hello world