View Full Version : Multiple input prompt

05-08-2006, 11:04 PM
sorry if this is a frequent question, but I couldnt find it in the forums. I'm trying to make a single prompt window with two input values. Right now I have the two values in two consecutive prompts... here is the function:

function addImage() {

var imagename = prompt('Image Name:', '');
var text = prompt('Link text:', '');

if(text == '')
text = imagename;


Thanks for any help.

05-08-2006, 11:37 PM
There are no multi-prompt modal windows in javascript. Sorry:(

You'll have to come up with a different solution if you don't want a two step process, like a form in a div that you can hide after the user enters the data.