Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Start Internet explorer with a fixed size

Start Internet explorer with a fixed size

Scheduled Pinned Locked Moved ASP.NET
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gunnar66
    wrote on last edited by
    #1

    Hi When a user is typing in my aspx address I would like Internet explorer to start up with a fixed size. How can I do this? And is there a way to find out the screen resoltion for the user. e.g 1024x768 or 1280x1024 ... thanks

    S K 2 Replies Last reply
    0
    • G gunnar66

      Hi When a user is typing in my aspx address I would like Internet explorer to start up with a fixed size. How can I do this? And is there a way to find out the screen resoltion for the user. e.g 1024x768 or 1280x1024 ... thanks

      S Offline
      S Offline
      SABhatti
      wrote on last edited by
      #2

      you an use javascript for this.. (e.g. function resizeWindow(){ // get screen width and height var h,w; h=screen.height-100; w=screen.width-100; //resize window window.resizeTo(w,h); } call the above javascript function onload of the page (e.g. ) you can center the window by using window.moveTo(x,y).. good luck Salim Akbar

      1 Reply Last reply
      0
      • G gunnar66

        Hi When a user is typing in my aspx address I would like Internet explorer to start up with a fixed size. How can I do this? And is there a way to find out the screen resoltion for the user. e.g 1024x768 or 1280x1024 ... thanks

        K Offline
        K Offline
        K Baruah
        wrote on last edited by
        #3

        You can find out the Client Screen Resolution by a small javascript function Create one HTML file with filename Screen_Resolution.html and place the following code function screen_resolution() { var screenheight = screen.height; var screenwidth = screen.width; document.ClientScreenResolution.screenheight.value = screenheight document.ClientScreenResolution.screenwidth.value = screenwidth return true; } Client Screen Resolution

        Client Screen Resolution

        Create an ASP file with filename screenresolution.asp and put the following code Client Screen Resolution Client Screen Resolution = <%=Request.Form("screenwidth")%> by <%=Request.Form("screenheight")%> Cheers and Enjoy the code Kaushik Baruah is presently working as a Programmer Analyst in Cognizant Technology Solutions,Kolkata,India

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups