Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
现在,在我看来,这是更多的 javascript 问题。当对象标签在 page1.html 中加载 page2.html 时,您可以定位标题标签并获取文本。使用 jquery 真的很容易做到这一点。
<script>$(document).ready(function(){ //here target the title inside your object, html .. </script>
参考:
jQuery
例子