g00fy
01-30-2003, 11:28 AM
hello all,
i am just trying to create an alert and need a little help pls.
var w = screen.width;
var h = screen.height;
if ((w <= 1023) && (h <= 767))
{
alert('This Website is best viewed at\n 1024 x 768 screen resolution or better\n\n');
}
what i would like is for the output to be:
This Website is best viewed at
1024 x 768 screen resolution or better
Your resolution is 'nnnn x mmm'
can this be done using var's w & h
i tried it using the same syntax as java but i didnt work
i,e., 'Your resolution is ' + w + ' x ' + h
TIA
g00fy
i am just trying to create an alert and need a little help pls.
var w = screen.width;
var h = screen.height;
if ((w <= 1023) && (h <= 767))
{
alert('This Website is best viewed at\n 1024 x 768 screen resolution or better\n\n');
}
what i would like is for the output to be:
This Website is best viewed at
1024 x 768 screen resolution or better
Your resolution is 'nnnn x mmm'
can this be done using var's w & h
i tried it using the same syntax as java but i didnt work
i,e., 'Your resolution is ' + w + ' x ' + h
TIA
g00fy