From 7f4592cc16fb35bf02615726f5e76204e8486e2d Mon Sep 17 00:00:00 2001 From: Mathi Krishnan <76192299+mathisudar@users.noreply.github.com> Date: Mon, 26 Jan 2026 17:42:43 +0000 Subject: [PATCH] 0014_JavaScript 0014_JavaScript --- 0001_change_content.html | 20 ++++++++++++++++++++ 0002_change_attributes.html | 24 ++++++++++++++++++++++++ 0003_change_css.html | 15 +++++++++++++++ 0004_hide_content.html | 13 +++++++++++++ 0005_show_hidden.html | 15 +++++++++++++++ 0006_JS_head.html | 22 ++++++++++++++++++++++ 0007_JS_body.html | 20 ++++++++++++++++++++ 0008_JS_extFile.html | 17 +++++++++++++++++ 0009_JS_extURL.html | 17 +++++++++++++++++ 0010_JS_extFolder.html | 17 +++++++++++++++++ 0011_JS_OUT_html.html | 16 ++++++++++++++++ 0012_JS_OUT_Element.html | 15 +++++++++++++++ 0013_JS_OUT_WindowAlert.html | 13 +++++++++++++ 0014_JS_OUT_Console.html | 16 ++++++++++++++++ myScript.js | 4 ++++ pic_bulboff.gif | Bin 0 -> 2493 bytes pic_bulbon.gif | Bin 0 -> 2554 bytes 17 files changed, 244 insertions(+) create mode 100644 0001_change_content.html create mode 100644 0002_change_attributes.html create mode 100644 0003_change_css.html create mode 100644 0004_hide_content.html create mode 100644 0005_show_hidden.html create mode 100644 0006_JS_head.html create mode 100644 0007_JS_body.html create mode 100644 0008_JS_extFile.html create mode 100644 0009_JS_extURL.html create mode 100644 0010_JS_extFolder.html create mode 100644 0011_JS_OUT_html.html create mode 100644 0012_JS_OUT_Element.html create mode 100644 0013_JS_OUT_WindowAlert.html create mode 100644 0014_JS_OUT_Console.html create mode 100644 myScript.js create mode 100644 pic_bulboff.gif create mode 100644 pic_bulbon.gif diff --git a/0001_change_content.html b/0001_change_content.html new file mode 100644 index 0000000..e9e303c --- /dev/null +++ b/0001_change_content.html @@ -0,0 +1,20 @@ + + +
++ JS can change HTML content. +
+ + + + + + \ No newline at end of file diff --git a/0002_change_attributes.html b/0002_change_attributes.html new file mode 100644 index 0000000..74994fe --- /dev/null +++ b/0002_change_attributes.html @@ -0,0 +1,24 @@ + + + + +JavaScript can change HTML attribute values.
+ +In this case JavaScript changes the value of the src (source) + attribute of an image.
+ + + + +
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/0003_change_css.html b/0003_change_css.html
new file mode 100644
index 0000000..f4a5202
--- /dev/null
+++ b/0003_change_css.html
@@ -0,0 +1,15 @@
+
+
+
+
+ JavaScript can change the style of an HTML element.
+ + + + + + + \ No newline at end of file diff --git a/0004_hide_content.html b/0004_hide_content.html new file mode 100644 index 0000000..fe02581 --- /dev/null +++ b/0004_hide_content.html @@ -0,0 +1,13 @@ + + + + +JavaScript can hide HTML elements.
+ + + + + \ No newline at end of file diff --git a/0005_show_hidden.html b/0005_show_hidden.html new file mode 100644 index 0000000..b464bc3 --- /dev/null +++ b/0005_show_hidden.html @@ -0,0 +1,15 @@ + + + + +JavaScript can show hidden HTML elements.
+ + + + + + + \ No newline at end of file diff --git a/0006_JS_head.html b/0006_JS_head.html new file mode 100644 index 0000000..9a6ec41 --- /dev/null +++ b/0006_JS_head.html @@ -0,0 +1,22 @@ + + + + + + + + + +A Paragraph.
+ + + + + + \ No newline at end of file diff --git a/0007_JS_body.html b/0007_JS_body.html new file mode 100644 index 0000000..dae9e6c --- /dev/null +++ b/0007_JS_body.html @@ -0,0 +1,20 @@ + + + + +A Paragraph.
+ + + + + + + + + \ No newline at end of file diff --git a/0008_JS_extFile.html b/0008_JS_extFile.html new file mode 100644 index 0000000..00b075d --- /dev/null +++ b/0008_JS_extFile.html @@ -0,0 +1,17 @@ + + + + +A Paragraph.
+ + + +This example links to "myScript.js".
+(myFunction is stored in "myScript.js")
+ + + + + \ No newline at end of file diff --git a/0009_JS_extURL.html b/0009_JS_extURL.html new file mode 100644 index 0000000..0066091 --- /dev/null +++ b/0009_JS_extURL.html @@ -0,0 +1,17 @@ + + + + +A Paragraph.
+ + + +This example uses a full web URL to link to "myScript.js".
+(myFunction is stored in "myScript.js")
+ + + + + \ No newline at end of file diff --git a/0010_JS_extFolder.html b/0010_JS_extFolder.html new file mode 100644 index 0000000..c5a4340 --- /dev/null +++ b/0010_JS_extFolder.html @@ -0,0 +1,17 @@ + + + + +A Paragraph.
+ + + +This example uses a file path to link to "myScript.js".
+(myFunction is stored in "myScript.js")
+ + + + + \ No newline at end of file diff --git a/0011_JS_OUT_html.html b/0011_JS_OUT_html.html new file mode 100644 index 0000000..2cb1984 --- /dev/null +++ b/0011_JS_OUT_html.html @@ -0,0 +1,16 @@ + + + + +My first paragraph.
+ +Never call document.write after the document has finished loading. + It will overwrite the whole document.
+ + + + + \ No newline at end of file diff --git a/0012_JS_OUT_Element.html b/0012_JS_OUT_Element.html new file mode 100644 index 0000000..b75ea01 --- /dev/null +++ b/0012_JS_OUT_Element.html @@ -0,0 +1,15 @@ + + + + +My First Paragraph.
+ + + + + + + \ No newline at end of file diff --git a/0013_JS_OUT_WindowAlert.html b/0013_JS_OUT_WindowAlert.html new file mode 100644 index 0000000..42f28a5 --- /dev/null +++ b/0013_JS_OUT_WindowAlert.html @@ -0,0 +1,13 @@ + + + + +My first paragraph.
+ + + + + diff --git a/0014_JS_OUT_Console.html b/0014_JS_OUT_Console.html new file mode 100644 index 0000000..8ec427f --- /dev/null +++ b/0014_JS_OUT_Console.html @@ -0,0 +1,16 @@ + + + + +F12 on your keyboard will activate debugging.
+Then select "Console" in the debugger menu.
+Then click Run again.
+ + + + + \ No newline at end of file diff --git a/myScript.js b/myScript.js new file mode 100644 index 0000000..f429e94 --- /dev/null +++ b/myScript.js @@ -0,0 +1,4 @@ +function myFunction() { + document.getElementById("demo").innerHTML = "Paragraph changed."; + } + \ No newline at end of file diff --git a/pic_bulboff.gif b/pic_bulboff.gif new file mode 100644 index 0000000000000000000000000000000000000000..65cacddab02fae95a13f5676c9b5ea878ebc3612 GIT binary patch literal 2493 zcmcIfi8~XH8{gb_?wnbSw9pt5s*zzMH#t{xOtH#+Mc+9hN-~Tgx0U;jP|Y#t2+f@% z%#rBpD&MbaKfeFN@AJN&<9Xlbd7tMsK^p5^#&`l60pm;ng+gI6X~)H+9V>}R!!l_w zCW*u(VVNY@$@qBjA88~kjRYf|087FiHw=56P9pX=Vqvfo`Ol6c3h%k_h~eTF|o_x6VQ;!DPWmsNafEXH^UU{nz