Hey.js1.0.0-beta

Completely customizable & dependency free
Javascript dialogs.

Alerts

heyAlert

<button onclick="heyAlert.show('This is just a test...')">heyAlert</button>

heyAlert w/ HTML

<button onclick="heyAlert.show('<h3>Hey!</h3><p>A custom alert dialog.</p><img src=\'http://dummyimage.com/200/3676f5/fff.jpg&text=image\'>')">heyAlert w/ HTML</button>

Confirms

Usage

heyConfirm.show('[plain text or html message]','[name_of_function_to_run]')

Example

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.

<button onclick="heyConfirm.show('<p>Are you sure you want to delete this text?</p>','deleteText')">Delete This Text</button>

Prompts

Usage

heyPrompt.show('[plain text or html message]','[name_of_function_to_run]')

Example

You can change this text!

<button onclick="heyPrompt.show('<p>Enter text to replace</p>','changeText')">Change Text</button>

An experiment built by Syndicatefx, based on this fiddle.