Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/89.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/9/three.js/2.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 表单中的目标标记不起作用_Html - Fatal编程技术网

Html 表单中的目标标记不起作用

Html 表单中的目标标记不起作用,html,Html,我有一个简单的搜索框表单,我希望使用target=\u top在新窗口中打开结果。我什么都试过了,到处都找遍了,但不管我怎么试,都没用。我在我的网站上使用target=\u top的很多常规链接都没有问题。我正在使用Firefox5.0 任何帮助都将不胜感激 感谢您希望使用target=\u blank在新窗口中打开它。以下以下划线开头的值可用于超链接的目标: _blank Renders the content in a new window without frames. _parent

我有一个简单的搜索框表单,我希望使用target=\u top在新窗口中打开结果。我什么都试过了,到处都找遍了,但不管我怎么试,都没用。我在我的网站上使用target=\u top的很多常规链接都没有问题。我正在使用Firefox5.0

任何帮助都将不胜感激


感谢您希望使用target=\u blank在新窗口中打开它。

以下以下划线开头的值可用于超链接的目标:

_blank  Renders the content in a new window without frames.
_parent Renders the content in the immediate frameset parent.
_self   Renders the content in the frame with focus.
_top    Renders the content in the full window without frames.

For your case you should use <a href="" target="_blank">my link</a>

我已经试过了,但都没用。不过,我确实找到了解决办法。我使用的是:form method=get target=searchstring,它来自于:input type=Text name=searchstring。谢谢