I was wondering if there was a way to create a popup dialog in JavaScript without using alert(), confirm(), prompt() or window.open()
The reason why is because I want to be able to put anything inside the dialog. Any content. (E.g. a text box, div, formatted content, or however many input buttons I wish and have with whatever text), and none of the alert(), confirm(), or prompt() allows you to do this. prompt() only allows for a text box. And alert() and confirm() only allow it's preset buttons and plain text. I don't want to use window.open() because it relocates to either a different url, or the same url with the same functionality.
Another thing is that all of the given options alerts the user, hence the function name alert() and prompt() I want something that's a little less intrusive.
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.
Now, I have never seen this used by anyone, 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 alert() or confirm() or prompt() with customize able buttons (however many I want with whatever caption values).
EDIT: 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.
EDIT 2: I don't wish to use plugins which can be manipulated in drastic ways. I am interested in what I can do with the system not what I can do with hacks.
alert()& co. are browser APIs, and have nothing to do with JavaScript (which is a scripting language, and hence doesn't define I/O APIs, or any other form of environment-specific APIs).