• Home
  • About
  • Resume

Resizing IE Modal Dialog in JavaScript

By , 12/03/2009 11:44 AM

If you open an IE Modal Dialog window and later on need to resize it using JavaScript code, standard “window.resizeTo” method doesn’t work. Use dialogWidth and dialogHeight instead. For example:

window.dialogWidth='640px';
window.dialogHeight='480px';

5 Responses to “Resizing IE Modal Dialog in JavaScript”

  1. adrian says:

    works great for me. thanks

  2. Joshua Chavez says:

    I’m can’t seem to get this working could you help me?

  3. Yuriy says:

    @Joshua Chavez The code is pretty straightforward and shouldn’t cause any problems. Are you using Internet Explorer and JavaScript function showModalDialog? Can you post snippets of your code?

  4. swapnil says:

    Too good…..thanks a tone…u made my day….

  5. Nathan says:

    Worked great! I must have searched 25 sites/blogs before i found this one, and this is the only fix that worked. Thanks Yuriy!

Leave a Reply

Panorama Theme by Themocracy