반응형

첫 번째 방법


window.location.href = url;


두 번째 방법(Spring Security에 위배)


<html>

<iframe id="myiframe" style="display:none;"></iframe>

</html>

<script>

document.getElementById("myiframe").src = url;

</script>


출처 : http://stackoverflow.com/questions/3749231/download-file-using-javascript-jquery

참고 : http://blog.naver.com/PostView.nhn?blogId=javaent&logNo=100057427980&widgetTypeCall=true

작성자 : javaent

반응형

+ Recent posts