Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <h1 id="naslov"></h1>
- <p id="tekst"></p>
- <script>
- function Foo() {
- var naslov = "Naslov sine";
- var tekst = "A ja sam samo glupi tekst";
- document.getElementById('naslov').innerHTML = naslov;
- document.getElementById('tekst').innerHTML = tekst;
- }
- </script>
- <button type="button" onclick="Foo()">Dugme, hehe</button>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement