Skip to content

Instantly share code, notes, and snippets.

@basictomonokai
Created August 5, 2017 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basictomonokai/055040cfa6bbf495d1c0d35584fded4f to your computer and use it in GitHub Desktop.
Save basictomonokai/055040cfa6bbf495d1c0d35584fded4f to your computer and use it in GitHub Desktop.
ボタンと入力項目がある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