为什么我的链接无法在html中重定向我

问题描述 投票:0回答:1

我正在为google chrome编写扩展程序,每次有人访问新网页时,它都会以笑话的形式警告用户。但是,当尝试为扩展名将具有的弹出窗口建立链接时,我遇到了这个问题。

[只要我单击应该将用户重定向到不和谐服务器的按钮,它就不会起作用。

我尝试查找它,但没有占上风,我也尝试使用普通链接而不是链接按钮((使用rn即时通讯)。)>

这是我在popup.html中的代码

<!DOCTYPE html>
<html>
  <head>
    <style>
      p {color:rgb(27, 73, 116);}
    </style>
  </head>
  <body>
    <p>Text stuff</p>
    <form action="censored link">
      <!-- the link is censored, in the actual code its a real link, the "censored link" thing isn't the problem-->
        <input type="submit" value="Join the discord" />
    </form>
  </body>
</html>

我正在为google chrome编写扩展程序,每次有人访问新网页时,它都会以笑话的形式警告用户。但是我在尝试制作...

html google-chrome google-chrome-extension firefox-addon
1个回答
0
投票

您为什么不使用超链接(a href)?

© www.soinside.com 2019 - 2024. All rights reserved.