Single Line JavaScript
Posted: Sun Nov 29, 2009 5:14 am
Fot a multi-line alert, use "\n" for a the line break.
If you want to test your website in different resolutions make a bookmark (or favorite) with the following as the link or location.
Ensure your page is not opened in a frame by putting this JavaScript in the head section of your page
Code: Select all
alert ('This is line one\nThis is line two');
Code: Select all
javascript:resizeTo(800,600);
Code: Select all
if (top.location != self.location) { top.location.href = self.location.href; }