It's just ... put a semicolon between your multi-lines and it will work in the console.
for example
if you have html like this
<div id="test">This is a test statement</div>
You can paste the following into the console and it will work
var ourTest = document.getElementById('test'); alert(ourTest.innerHTML);
I hope this helps.
SA Malik Dec 23 '10 at 8:24 2010-12-23 08:24
source share