mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-20 11:12:46 +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>
|
||
|
|