I have a Javascript function
function changeDocument(idxpv, open){
if(open)
$("#Upload"+idxpv + " input[type=file]").click();
}
and a link
<a href="javascript:changeDocument(1,true);" class="close fileupload-exists"
data-dismiss="fileupload">change document</a>
Now on clicking the link IE9/8 shows the prompt box asking for LEAVE THE PAGE
and STAY ON PAGE
EDIT
The file upload button is generated from Valum's qqFileuploader library.
Could someone guide me whats wrong with it?