简体   繁体   English

显示页面html的变化

[英]Change of dispayed page html

I have 2 HTLM webpages with links www.testme.com/a.html and www.testme.com/b.html .我有 2 个带有链接的 HTLM 网页www.testme.com/a.htmlwww.testme.com/b.html Now, I would like the link www.testme.com/b.html to be displayed when a.html is open.现在,我希望在打开 a.html 时显示链接www.testme.com/b.html Is that possible?那可能吗?

If it's not possible, maybe I have another approach: In a.html, I have share button to social media with code below.如果不可能,也许我有另一种方法:在 a.html 中,我使用下面的代码将按钮分享到社交媒体。 When choosing one button associated with one social media, I would like b.html to be shared instead of a.html.选择与一个社交媒体关联的一个按钮时,我希望B.HTML要分享而不是A.html。

<!-- AddToAny BEGIN -->
<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
<a class="a2a_dd" href="https://www.addtoany.com/share"></a>
<a class="a2a_button_facebook"></a>
<a class="a2a_button_twitter"></a>
<a class="a2a_button_email"></a>
<a class="a2a_button_whatsapp"></a>
<a class="a2a_button_linkedin"></a>
<a class="a2a_button_google_gmail"></a>
<a class="a2a_button_telegram"></a>
<a class="a2a_button_skype"></a>
<a class="a2a_button_sms"></a>
<a class="a2a_button_viber"></a>
</div>
<script async src="https://static.addtoany.com/menu/page.js"></script>
<!-- AddToAny END -->

If I understand your question correctly, you want the content of www.testme.com/b.html to be shown on www.testme.com/a.html when it's open.如果我正确理解您的问题,您希望www.testme.com/b.html的内容在打开时显示在www.testme.com/a.html上。

In that scenario, you're able to use an HTML iframe for that.在这种情况下,您可以为此使用 HTML iframe。

Example:例子:

<iframe src="b.html" height="500" width="500"></iframe>

More information about HTML iframes can be found here .可以在此处找到有关 HTML iframe 的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM