0
我目前正在尝试学习HTML,并希望创建一些内容,因为我正在学习。我正在尝试创建一个可从多个站点检索结果的搜索框。到目前为止,只有在行动中的第一个网站才有效,但不是第二个网站。我试图在谷歌搜索很多,但无法找到任何东西,我也试着在这里检查,但似乎没有发现任何东西。我只是试图让搜索框从多个不同的网站获得结果。将表单提交到多个URL
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Test</title>
</head>
<body>
<h1>Search for a Domain or IP</h1>
<form method="get" action="https://www.virustotal.com/en/domain/%s/information/","https://duckduckgo.com/search.html?prefill=Search DuckDuckGo" target="_blank" onsubmit="submitSearch()">
<input type="text" placeholder="Search..." required>
<input type="button" value="Search">
</form>
</body>
</html>
如果你打算在这一点上,至少让我知道为什么。 – crame