I have the following JS script:
function Init()
{
addMenuItem("Test InputText", "", "testMe");
}
function testMe()
{
var tmp;
tmp = InputText("Enter something here:","default");
echo(tmp);
}
The variable tmp contains the string "default" when I click Cancel.
Is that normal? I expected it to be empty.
To put the same thing differently: Is there a way to have an input box with a
default string, and can I still know if the user clicked Cancel or
OK?
--
<http://forum.pspad.com/read.php?2,36503,37434>
PSPad freeware editor http://www.pspad.com