So, I\'ve been trying stuff lately and got this piece of code in my script:
document.body.bgColor = \"red\"; alert(\"hello\");
But in Chrom
The simplest workaround will be like:
document.body.bgColor = "red"; setTimeout(function() { window.alert('Hello There!'); }, 10);
The timeout value "9" is the minimum in my case, if i use <9, alert appears first.