Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ボタンと入力項目があるHTML
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<title>ボタン+入力</title>
<style>
input {
font-size: 1.5em;
}
button {
font-size: 1.5em;
margin: 10px 0px;
}
</style>
<script type="text/javascript">
function doDataLink(data) {
// alert(data);
Android.dataLink(data);
}
</script>
</head>
<body>
<h1>ボタン+入力</h1>
<div>
<input id="aaa" type="text" name="inp" size="20" placeholder="入力してください">
</div>
<button onclick="doDataLink('//i//'+document.getElementById('aaa').value)">テスト</button>
<button onclick="doDataLink('//x//')">終了</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.