Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 180559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:36:28+00:00 2026-05-11T14:36:28+00:00

I am opening a window as a modal. window.showModalDialog( http://www.google.com ,,dialogWidth:500px;dialogHeight:500px) as I set

  • 0

I am opening a window as a modal. window.showModalDialog(‘http://www.google.com‘,”,’dialogWidth:500px;dialogHeight:500px’)

as I set height, what are other options available? Like option buttons, menus etc. where I can find tutorials?

EDIT

It works in Mozilla firefox, but people are saying it doesn’t!

My code is

Please somebody Edit my sample code for display purpose

<html> <head> <script>     function abc() {         window.showModalDialog('3.htm', '', 'dialogWidth:500px;dialogHeight:500px');     } </script> </head> <body> <input type='button' id='check' name='check' onclick='abc()' value='open'/> </body> </html> 

Second EDIT

code for page 3.htm

     <html> <head> <script> function abc(){ close() } </script> </head> <body> <input type='button' id='check' name='check' onclick='abc()' value='close'/> </body> </html> 

Check out both code on fire fox! and tell me.

Third EDIT

Ok It’s not working in corme and opera

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:36:28+00:00Added an answer on May 11, 2026 at 2:36 pm

    Be aware that showModalDialog is IE specific and won’t necessarily work with other browsers. If you want cross browser modal dialogs you need to use a div to hide the rest of the page and overlay your dialog on top. It is easier to use an existing javascript library that already takes care of this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to enable opening links exposed via s:link in a new window http://www.jsftoolbox.com/documentation/seam/09-TagReference/seam-link.html
I'm opening a modal window with javascript like this: window.showModalDialog('<%=Url.Action(Index,Bank) %>', Ratting, 'width=550,height=170,left=150,top=200,toolbar=1,status=1,') and
I'm opening a modal dialog for IE6 and above using the following javascript. window.showModalDialog(
I am opening a window and passing set of parameters to it. In this
I'm trying to use Tim Heuer's FloatableWindow control for a non-modal options window in
I have the following HTML code: <div onclick=window.open('http://example.com') > <p>1234 Main St, New York,
I am opening a modal popup window. Then I access a parent window textbox
Response To: Opening Popup Window is not working in firefox and google chrome Hi,I
I have a c# program through which i am opening cmd window as a
print() doesn't work in IE after opening a new window. It works in Chrome.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.