我正在尝试制作一个 Chrome 浏览器扩展程序,让您可以搜索我的网站。网站上的搜索框有效。但是当我将相同的 HTML 代码添加到我的扩展文件中时,它就不起作用了。这是我的搜索框的代码:
<form class="text-center" id="searchGuides" action="https://www.arcanumgaming.com/game" method="GET">
<input type="hidden" name="a" value="search" />
<input type="hidden" name="g" value="grand-theft-auto-v" />
<div >
<input type="text" name="searchVal" class="searchField" placeholder="Search Game Content" />
</div>
<div >
<a href="#" class="searchBtn" onclick="document.getElementById('searchGuides').submit();">Search Content</a>
</div>
</form>