I am trying to make a (pointless) bookmarklet that changes the entire body to Italics. My code is this:
javascript:document.body.style.font-style: = italic;
Please explain to me why it isn't working and how I can fix it.
font-style
should be fontStyle
:
italic
in double quotes.document.body.style.fontStyle = "italic";
JavaScript will make it Italic