made some work for pastedb / pastecache..
This commit is contained in:
25
webpage-stuff/button-example.html
Normal file
25
webpage-stuff/button-example.html
Normal file
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
textarea{
|
||||
overflow: hidden !important;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function buttonPressed() {
|
||||
var inputText = document.getElementById("inputText").value;
|
||||
var textBox = document.getElementById("myTextBox");
|
||||
textBox.value += inputText + "\n";
|
||||
textBox.scrollTop = textBox.scrollHeight;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="myTextBox" rows="4" cols="50" style="overflow:auto"></textarea>
|
||||
<br>
|
||||
<input type="text" id="inputText">
|
||||
<button onclick="buttonPressed()">Press me</button>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user