Web Analytics Made Easy -
StatCounter Resolution Detect And Alert ? - CodingForum

Announcement

Collapse
No announcement yet.

Resolution Detect And Alert ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    alert("You screen resolution is "+screen.width+" by "+screen.height+" pixels.");

    Comment


    • #3
      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

      Comment


      • #4
        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)

        Comment


        • #5
          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>

          Comment

          Working...
          X