dpgu5074 2015-10-22 21:38
浏览 19

html <object data>使用非链接导航到我从具有多个页面的页面单击的页面

Right now I have 4 search pages being pulled into one page using a table and the object tag. If I click on a link anywhere with anyone of the search pages I can go to that link.

How can I go to that systems home page by clicking in an area without a link? For instance I can click on anything at Google.com and even insert my cursor into the search area, but I would like to click it so it is the only page on the screen too.

I don't want to lose the functionality of being able to click on links when multiple webpages are up..

<table style="width:100%">
    <tr>
        <td style="height:800px">
            <object data='http://google.com' width='100%' height='100%'>
            </object>
        </td>
        <td style="height:800px">
            <object data='http://bing.com' width=100% height='100%'>
                <pr>Browser won't retrieve the forecast</pr>
            </object>
        </td>
    </tr>
    <tr>
        <td style="height:800px">
            <object data='http://lycos.com' width=100% height='100%'>
            </object>
        </td>
        <td style="height:800px">
            <object data='http://ask.com' width=100% height='100%'>
            </object>
        </td>
    </tr>
</table>
  • 写回答

1条回答 默认 最新

  • dongpu9481 2015-10-22 21:45
    关注

    Why is it needed to use object tag? You can store your url in a data attribute by using simply a div and you can add a simple click eventhandler to it. When you click on it just get the stored url from the data and give it to the window.location.

    评论

报告相同问题?

悬赏问题

  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 Centos / PETSc / PETGEM