Newbie Trouble :P

wxdqz

New Member
I'm new to Javascripting and having a little bit of trouble getting this ifcheck to work...


var height=screen.height;
var width=screen.width;
var minheight=1024;
var minwidth=768;

if (height < minheight && width < minwidth)
{
document.write("Please make your screen resolution bigger");
}
else if ((height < minheight) && (width < minwidth))
{
document.write("Please make your screen resolution bigger");
}
else
{
}


I don't get why it won't show anything, no errors or anything, just not showing.
 
Back
Top