我有一个用 Java(Eclipse) 编写的应用程序的外壳,它只返回一个 Webview。在 Webview 返回的这个 html 中,我有一个按钮可以将您带到下一页。
当您单击该按钮时,它只会突出显示橙色并且什么都不做。如果我将其设为链接(),它将转到下一页。
在我下面的代码中,它们是以不同方式生成的两个按钮。它们都在应用程序上显示一个按钮,但单击时不执行任何操作。
<!DOCTYPE html>
<html>
<head>
</head>
<body>
Welcome to this page blah blah blah
<br />
<input type="button" value="Click Me!" onClick="parent.location='fred.htm'"/>
<button onClick="parent.location='fred.htm'">Click Me!</button>
</body>
</html>