Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Easy to use Javascript dialog box, customizable, draggable, resizable. Easily create a messagebox, alert, confirm, prompt, toast, or whatever you want to put in a dialog box.

License

NotificationsYou must be signed in to change notification settings

keejelo/EasyDialogBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,545 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy to use Javascript dialog box!

Easily create a messagebox, alert, confirm, prompt, toast, or whatever you want to put in a dialog box.


Features

  • Plain vanilla Javascript, no libraries needed.
  • Customizable
  • Draggable
  • Resizable
  • Responsive
  • Using standard Javascript (ES5), HTML and CSS. Crossbrowser, trying to support legacy browsers as much as possible.
  • Lightweight

How to use?

Documentation and live examples:https://keejelo.github.io/EasyDialogBox/documentation.html


Below shows a very basic and simple example of how to create and show a dialogbox:

let myBox = EasyDialogBox.create('myId', 'dlg', 'My title', '<p>Hello there!</p>');myBox.show();

Produces this:

example.png

This is the default style, but it can of course be customized as you wish withoptional flags,colors, and even further with editing thecss-file.
The content can be anything you want, Html, plain text.
Adding your owncustom buttons to the footer is also possible.


See more examples:https://keejelo.github.io/EasyDialogBox/documentation.html#js_example


Important changes

  • Version 1.735 and above:
    Removed parameterbKeepAlive from function:EasyDialogBox.create(...);
    Syntax is now:
    EasyDialogBox.create(id, strBoxTypeClass, strTitle, strMessage, fnCallback, x, y, w, h);


  • Version 1.722 and above:
    The "classflags" below has had their names changed due to naming ambiguity causing bugs:

    • "dlg-no-drag" is now called "dlg-disable-drag"
    • "dlg-no-btns" is now called "dlg-disable-btns"
    • "dlg-no-overlay" is now called "dlg-disable-overlay"
    • "dlg-no-footer" is now called "dlg-disable-footer"

Motivation

I started this when I needed a multipurpose dialogbox for my own projects. Not wanting to be dependant on any libraries, I wrote this dialogbox module using only plain Javascript. If anyone else finds this useful that's great.

Although dialogboxes has got a "bad rap" in the web-world, I still think they have their use when used correctly and in the right settings.


Credits

Thanks toray73864 for testing and feedback.


License

MIT © keejelo

About

Easy to use Javascript dialog box, customizable, draggable, resizable. Easily create a messagebox, alert, confirm, prompt, toast, or whatever you want to put in a dialog box.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp