First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
+36
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Emilio</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>This is Emilio's Page</h2>
|
||||
<p style='color: red;'>This is the page content</p>
|
||||
<p id='second-paragraph'></p>
|
||||
<input type='text' name='sampleText' id='sampleText' onchange="updateText(this.value)">
|
||||
|
||||
<?php
|
||||
echo("<p>This is some PHP</p>");
|
||||
?>
|
||||
|
||||
<button id='button1' onclick="AddText()"> Click Me </button>
|
||||
|
||||
<p id='new-text'>Original Text</p>
|
||||
|
||||
|
||||
<script language= "JavaScript">
|
||||
var sample = "This is some sample text";
|
||||
var para = document.getElementById('second-paragraph');
|
||||
para.textContent = sample;
|
||||
|
||||
function updateText(fieldText) {
|
||||
alert(fieldText);
|
||||
}
|
||||
|
||||
function AddText() {
|
||||
alert('here');
|
||||
document.getElementById('new-text').innerHTML = "This is some new text";
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user