Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 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?

  2. #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    alert("You screen resolution is "+screen.width+" by "+screen.height+" pixels.");

  3. #3
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    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

  4. #4
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)

  5. #5
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •