Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何使用链接转到iframe中的特定pdf页面?_Html_Pdf_Iframe_Hyperlink_Target - Fatal编程技术网

Html 如何使用链接转到iframe中的特定pdf页面?

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

我想转到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="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>