Page 128 - PortGPT_V2.1_C8_Flipbook
P. 128
https://www
A. Enter the following data in an Excel worksheet
and perform the Computational Thinking
following operations: G. Write a Javascript program to display the value attributes of the button after clicked
on it.
<html>
https://www https://www
<script>
function change() {
document.getElementById("Btn").value = "Value is changed!";
}
https://www https://www
</script>
1. Sort the data according to the names of the
<body>
students.
2. Apply filters to get the records of those <p>Click on "My Button" to display its value attribute.</p>
students who scored 500 marks in the exams.
<button id="Btn" name="B1" value="Button1"
3. Use HLOOKUP function to display the marks onclick="alert(this.value)"> Button 1</button>
of the whose roll number is 1234.
<p>Click on "Try Out" to change the value attribute of
"Button 1".</p>
<button onclick="change()">Try Out</button>
<p><b>Tip:</b> Click on "Button1" before and after you have
clicked on "Try Out".</p>
</body>
</html>
Output:
https://www https://www
126
126 Premium Edition-VIII
https://www

