www.webdeveloper.com
Results 1 to 2 of 2

Thread: How wide is my printer?

  1. #1
    Join Date
    Dec 2008
    Location
    Maryland
    Posts
    38

    How wide is my printer?

    If I want to know the width of the screen that is displaying the page I can use the following JavaScript code:
    Code:
        // Find out the page width in pixels 
        if (document.layers) {
            width = window.innerWidth;
        }
        // Explorer 6 Strict Mode 
        else if (document.documentElement && document.documentElement.clientHeight) {
            width = document.documentElement.clientWidth;
        }
        else if (document.all) {
            width = document.body.clientWidth;
        }
    Is there any similar code for determining the width of the printer page?

  2. #2
    Join Date
    May 2011
    Posts
    194

    object printer not exist


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles