I have scenario where user can click on a link in a dialog box. While clicking on this link the link should be opened in a new window.
Here the links will be local files (like E:\docs\test.pdf) that user uploaded.
Here is my code : http://jsfiddle.net/inDiscover/Cuy8z/
Code I used to open a file.
$(document).on("click", "#link_id", function (event) {
alert("clicked");
event.preventDefault();
window.open("E:/DOCUMENTS/test.txt");
});
Is this possible to do in any way. If possible please guide me to write a code for this. Or browser is blocking this as a security feature.