I want to pop up a new window.
I am doing it with 2 different ways as per my requirements. I use, <a target="_blank", where i used link, and i use, onlick="window.open()" when i use it with button.
Link - <a target="_blank" href="URL">
Button - <input type="Button" onclick="window.open("URL");">
The link option is working fine. But the button is not working. I know, there wont be any problem with Link or Burron onClick.
Now, the URL is to download a file from server. So, when the new window is opened by Link, it works fine. So, there wont be any problem in downloading the file from server. But, if i open the same URL with Button using window.open, then it gives error as following while downloading the file. The error is as following.
Internet Explorer can not download URL from SERVER.
So, can anybody please give me the solution or alternative way to do it.