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

  • Home
  • SEARCH
  • 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

I use $(window).bind( ... ) to set up event handlers, but for some reason
I've opened a new window with window.open() and I want to use the reference
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 can use FlashWindowEx to make a window flash in the taskbar, but what
Having the window handle for an open application, I'm able to use the GetWindowText
I'm showing a modal dialog via window.showModalDialog(... which happens in a vbscript function (the
We have implemented a popup window as a modal dialog using the IE method:
I' trying to use window.pageYOffset & window.scrollMaxY to calculate the current page progress. This
I want to use a temp directory that will be unique to this build.

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.