CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   Resolution Detect And Alert ? (http://www.codingforums.com/showthread.php?t=435)

acidikal 06-20-2002 08:51 PM

Resolution Detect And Alert ?
 
I Know theres that popular script that will display a text parapragh of "Please change your reslution to etc."

But is it possible to create an alert, to make sure the user sees it?

x_goose_x 06-20-2002 09:57 PM

alert("You screen resolution is "+screen.width+" by "+screen.height+" pixels.");

acidikal 07-02-2002 06:39 AM

Could you possibly put it like it would look of I was to copy and paste it in, because I cant seem to get this to work.

Im so stupid :(

acidikal 07-02-2002 06:40 AM

Just to make it clearer, i mean with the tags intact, or just say what tag to add it in, because i pasted that and it didnt work (in head and body)

pastorOfMuppets 07-02-2002 06:47 AM

heres what u want

all javascript must be enclosed in <script> </script>

just add them then put any JS code in.

<script>

<!-- Hide this code if the users browser dosn't accept Javascript
alert("You screen resolution is "+screen.width+" by "+screen.height+".");
!-->
</script>


All times are GMT +1. The time now is 05:39 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.