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
  1. Home
  2. Web Development
  3. ASP.NET
  4. popup window at center screen

popup window at center screen

Scheduled Pinned Locked Moved ASP.NET
javascripthelptutorialquestion
2 Posts 2 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.
  • D Offline
    D Offline
    deep7
    wrote on last edited by
    #1

    Hi, I need to open a calender popup window on click of an image...the popup width and height is set correctly. I need to show the popup at center of the screen...on any machine with any resolution the popup must open at center of the screen... in the javascript function, i have: ChildWindow = window.open('frmCalender.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=200,height=210,toolbars=no,scrollbars=no,status=no,resizable=no,titlebar=no"); How to make the popup open at center screen? Kindly do help me.. Thanks, Dee

    R 1 Reply Last reply
    0
    • D deep7

      Hi, I need to open a calender popup window on click of an image...the popup width and height is set correctly. I need to show the popup at center of the screen...on any machine with any resolution the popup must open at center of the screen... in the javascript function, i have: ChildWindow = window.open('frmCalender.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=200,height=210,toolbars=no,scrollbars=no,status=no,resizable=no,titlebar=no"); How to make the popup open at center screen? Kindly do help me.. Thanks, Dee

      R Offline
      R Offline
      rreddy V
      wrote on last edited by
      #2

      Add top and left attributes ChildWindow = window.open('frmCalender.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=200,height=210,toolbars=no,scrollbars=no,status=no,resizable=no,titlebar=no,top=300,left=350");

      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