Day 1 Completed

pull/290/head
dev-keshav 3 years ago
parent d0c066fcb9
commit ba22c2e129

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Level 1 of 30 days of react</title>
<script src="level1.js"></script>
</head>
<body>
<h1> inline script</h1>
<button onclick="alert('This is inline script')" >Click</button>
<h1>Internal script</h1>
<p id="para">Click kro button pe</p>
<button class="internal" onclick="clickhere()">Internal script</button>
<script>
console.log("Hello! This is internal script");
function clickhere(){
alert("This is internal script");
document.getElementById("para").innerHTML="Click ho gya hai"
}
</script>
<h2>This is a external script</h2>
<p id="external">Click for external script</p>
<button onclick="externalScript()">Click</button>
</body>
</html>
Loading…
Cancel
Save