var power_msg = "Clicks per hour: 123\nClicks per day: 456\nLink Clicks: 789/250\nPower gained yesterday:987\n";
document.write(power_msg);
This just prints:
Quote:
|
Clicks per hour: 123 Clicks per day: 456 Link Clicks: 789/250 Power gained yesterday:987
|
without the newlines that should be there from all the \n. Any idea why? I Googled, and \n seems to be the newline in JavaScript.
I also tried with \r (it said that was for Windows) but it had the same effect.
Any help would be appreciated. Thanks!