var label = prompt('Label for Vertical Line');
This code returns the value in label
which I enter in the prompted field. But I want some time delay to get the prompted value.
I'm using this code:
var label=alertWithoutNotice();
function alertWithoutNotice(){
var lab;
setTimeout(function(){
lab=prompt('Label for Vertical Line');
}, 1200);
return lab;
}
But this doesn't return any value. Please tell me what is wrong?