mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
19 lines
329 B
HTML
19 lines
329 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
|
|
<button onclick="add_paragraph()">Click me!</button>
|
|
|
|
<script>
|
|
function add_paragraph() {
|
|
var paragraph = document.createElement("P");
|
|
var textnode = document.createTextNode("New paragraph!");
|
|
paragraph.appendChild(textnode);
|
|
document.body.appendChild(paragraph);
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|
|
|