I’m using the Message Boxes (dhtmlxMessage) to display messages on screen. I also want to use an inputbox in the same layout.

Currently I’m using this code to ask for a value from a user:

<script type="text/javascript">
	var reason = prompt ("Give a reason why you do this.","");
	//Then I use the reason to do stuff with it.

The layout of the code above is very ugly. It would be super if I could request the data with a dhtmlxMessage or dhtmlxInputbox.

Can you make this possible?




There is no native support for “prompt” like behavior, but you can use dhtmlx.modalbox to show a custom popup with any content. For example it can be popup with text message, input box and confirmation button.