Page 1 of 1

Single Line JavaScript

Posted: Sun Nov 29, 2009 5:14 am
by Tony
Fot a multi-line alert, use "\n" for a the line break.

Code: Select all

alert ('This is line one\nThis is line two');  
If you want to test your website in different resolutions make a bookmark (or favorite) with the following as the link or location.

Code: Select all

javascript:resizeTo(800,600);  
Ensure your page is not opened in a frame by putting this JavaScript in the head section of your page

Code: Select all

if (top.location != self.location) { top.location.href = self.location.href; }