Html 如何使用链接转到iframe中的特定pdf页面?
我想转到iframe中的特定pdf页面,但我不知道为什么它不起作用 我希望pdf页面在iframe内更改Html 如何使用链接转到iframe中的特定pdf页面?,html,pdf,iframe,hyperlink,target,Html,Pdf,Iframe,Hyperlink,Target,我想转到iframe中的特定pdf页面,但我不知道为什么它不起作用 我希望pdf页面在iframe内更改 <a HREF="test.pdf#page=4&zoom=150" target="iframe_a">go to page</a> <iframe name="iframe_a" src="test.pdf" height="100%" width
<a HREF="test.pdf#page=4&zoom=150" target="iframe_a">go to page</a>
<iframe name="iframe_a" src="test.pdf" height="100%" width="100%" ></iframe>
转到第页
函数changepage(){
document.getElementById(“changeiframe”).src=”https://www.w3schools.com/";
}
您可能有多个pdf文件,就像您在更改页面一样
<iframe id="changeiframe" height="100%" width="100%"src="https://example.com/"></iframe>
<button onclick="changepage()">go to page</button>
<script>
function changepage() {
document.getElementById("changeiframe").src = "https://www.w3schools.com/";
}
</script>