Note that there are some explanatory texts on larger screens.

plurals
  1. POJavaScript - How to create a dialog window without using alert() or window.open()?
    primarykey
    data
    text
    <p>I was wondering if there was a way to create a popup dialog in JavaScript without using <code>alert(), confirm(), prompt()</code> or <code>window.open()</code></p> <p>The reason why is because I want to be able to put anything inside the dialog. Any content. (E.g. a text box, <code>div</code>, formatted content, or however many input buttons I wish and have with whatever text), and none of the <code>alert(), confirm(),</code> or <code>prompt()</code> allows you to do this. <code>prompt()</code> only allows for a text box. And <code>alert()</code> and <code>confirm()</code> only allow it's preset buttons and plain text. I don't want to use <code>window.open()</code> because it relocates to either a different url, or the same url with the same functionality. </p> <p>Another thing is that all of the given options <i>alerts</i> the user, hence the function name <code>alert()</code> and <code>prompt()</code> I want something that's a little less intrusive.</p> <p>The reason I don't want to use a jQuery plugin or make my own plugin is because I want the dialog to have a GUI native to the OS.</p> <p>Now, I have never seen this used by <i>anyone</i>, and I would say I have adequate experience in web surfing and referencing. So if this is impossible, then another acceptable answer would be to have an <code>alert()</code> or <code>confirm()</code> or <code>prompt()</code> with <i> customize able </i> buttons (however many I want with whatever caption values). </p> <p><b>EDIT:</b> The reasoning behind this request is because I have been taking computer science courses lately involving C++ and Python 2, which has the ability to do this by invoking the System GUI, but I am more comfortable with the browser-client side architecture. That and I am also just curious.</p> <p><b>EDIT 2:</b> I don't wish to use plugins which can be manipulated in drastic ways. I am interested in what I can do with the <b>system</b> not what I can do with <i>hacks</i>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload