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 1036487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:42:44+00:00 2026-05-16T14:42:44+00:00

I use : Window.showModalDialog(…) to open a dialog window, I want show some HTML

  • 0

I use :

Window.showModalDialog(...)

to open a dialog window,

I want show some HTML code in this window, but I don’t have a file. (Can’t use URL to visit)

like show “hello world!” in this dialog window.

Can I do it?

  • 1 1 Answer
  • 0 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. Editorial Team
    Editorial Team
    2026-05-16T14:42:45+00:00Added an answer on May 16, 2026 at 2:42 pm

    Interesting question!

    I’m not an expert in modal dialogs, but I don’t think you can, because it’s in the nature of a modal dialog to block any further code from being executed until the window is closed again.

    I thought about using a data: URI that you could use as the first argument to showModalDialog instead of a normal URL:

     window.showModalDialog("data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D" ....);
    

    but according to the MSDN page on data: URIs, that will not be supported in Internet Explorer. (see the “Remarks” section on the linked page)

    It might work in Firefox, though: More on data URIs at Mozilla Developer Central

    Update: It works in Firefox: JSFiddle but, as expected, not in IE. You only get a blank window there.

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

Sidebar

Related Questions

when ever i use window.location.href=//some url it always open a new window, this only
i have popup-window in my script. I use window.open, but almost all browsers block
Somewhere in page, I use onclick=window.showModalDialog(http://rauf-thecoder.blogspot.com/); . It will show the following. How can
I have a page and use window.addEvent('load', function() { alert('test'); }), but the browser
I use window.open and call it at the document ready event, but it is
I am trying to use window.open() to pass along some arguments to another page.
I want to send a float variable to Actionscript. I use window.document.setVariable() , but
What are situation when you want to use window.showModalDialog function? It seams that you
I want to build a chat server but i don't know i should use
I have some calculations that rely on window.innerHeight . But as I have found

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.