我已经编写了扩展的代码,该扩展在启动时可以启动给定的网站和HTML文件;不过,当我点击扩展名时,按钮不会做任何事情。创建一个Chrome扩展,其中包含指向网站的按钮链接
<!doctype html>
<html>
<head>
<title>Google Apps Launcher</title>
<script src="popup.js"></script>
</head>
<body>
<h1>Google Apps Launcher</h1>
<FORM>
<INPUT Type="BUTTON" Value="Gmail" Onclick="window.location.href='https://www.gmail.com'">
<INPUT Type="BUTTON" Value="Google Drive" Onclick="window.location.href='https://drive.google.com/drive/u/0/'">
<INPUT Type="BUTTON" Value="Google Calendar" Onclick="window.location.href='https://calendar.google.com/calendar/render#main_7'">
<INPUT Type="BUTTON" Value="Google Docs" Onclick="window.location.href='https://docs.google.com/document/u/0/'">
<FORM/>
</body>
</html>
你会如何建议我这样做呢? – cwittenb