var i, styles = getComputedStyle(document.body, null), css = []; for (i = 0; i < styles.length; i++) { css.push(styles[i] + ": " + style.getPropertyValue(styles[i])); } alert(css.join(";\n"));