Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/390.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/292.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
Javascript html<;对象数据>;使用非链接导航到我从包含多个页面的页面单击的页面_Javascript_Php_Html - Fatal编程技术网

Javascript html<;对象数据>;使用非链接导航到我从包含多个页面的页面单击的页面

Javascript html<;对象数据>;使用非链接导航到我从包含多个页面的页面单击的页面,javascript,php,html,Javascript,Php,Html,现在,我有4个搜索页面被拉到一个页面使用表和对象标签。如果我在搜索页面的任何地方点击一个链接,我都可以进入该链接 如何通过单击没有链接的区域进入系统主页?例如,我可以在Google.com上点击任何东西,甚至可以将光标插入搜索区域,但我想点击它,所以它也是屏幕上唯一的页面 我不想失去在多个网页出现时单击链接的功能 <table style="width:100%"> <tr> <td style="height:800px">

现在,我有4个搜索页面被拉到一个页面使用表和对象标签。如果我在搜索页面的任何地方点击一个链接,我都可以进入该链接

如何通过单击没有链接的区域进入系统主页?例如,我可以在Google.com上点击任何东西,甚至可以将光标插入搜索区域,但我想点击它,所以它也是屏幕上唯一的页面

我不想失去在多个网页出现时单击链接的功能

<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>

浏览器无法检索预测

为什么需要使用对象标记?只需使用一个div,就可以将url存储在数据属性中,还可以向其中添加一个简单的click eventhandler。单击它时,只需从数据中获取存储的url并将其提供给window.location