skateaz
05-08-2006, 10: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;
}
document.update.body.value+=""+text+"";
}
Thanks for any help.
function addImage() {
var imagename = prompt('Image Name:', '');
var text = prompt('Link text:', '');
if(text == '')
{
text = imagename;
}
document.update.body.value+=""+text+"";
}
Thanks for any help.