dag 3 commit 1
This commit is contained in:
parent
8bc31be735
commit
06bd2966ca
6 changed files with 58 additions and 1 deletions
32
intro html/js.html
Normal file
32
intro html/js.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Introduksjon til JavaScript</h3>
|
||||
<ol>
|
||||
<li>Finne frem til en tagg</li>
|
||||
<li>Endre HTML</li>
|
||||
<li>Trekke ut som funksjon</li>
|
||||
<li>kalle andre funksjoner<br /></li>
|
||||
</ol>
|
||||
<h3>Så bruker vi JavaScript til dette</h3>
|
||||
<ol>
|
||||
<li>Åpne og Lukke</li>
|
||||
<li>Velge hode</li>
|
||||
</ol>
|
||||
<div id="geirsTagg">(tom)</div>
|
||||
<button onclick="newText()">Trykk her</button>
|
||||
<script>
|
||||
function newText() {
|
||||
document.getElementById('geirsTagg').innerHTML = 'Ny tekst'
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue