Javascript 如何在iframe上的按钮单击事件中滚动到pdf的下一页?
我正在iframe中加载pdf文件。现在我想在点击按钮的同时滚动到下一页。 那么,如何能够使用按钮单击事件移动到下一页呢Javascript 如何在iframe上的按钮单击事件中滚动到pdf的下一页?,javascript,html,jquery,model-view-controller,iframe,Javascript,Html,Jquery,Model View Controller,Iframe,我正在iframe中加载pdf文件。现在我想在点击按钮的同时滚动到下一页。 那么,如何能够使用按钮单击事件移动到下一页呢 <div> <button id="btnNextPage">Next</button> </div> <div> <iframe class="frame" id="iframe" src="~/Document/Applic
<div>
<button id="btnNextPage">Next</button>
</div>
<div>
<iframe class="frame" id="iframe" src="~/Document/Application.pdf" width="100%" height="100%"></iframe>
</div>
<script>
$(document).ready(function(){
$("#btnNextPage").click(function(){
//Pdf in iframe should be scrol to next page
});
});
</script>
下一个
$(文档).ready(函数(){
$(“#btnNextPage”)。单击(函数(){
//iframe中的Pdf应转到下一页
});
});