Problem 1 <html> <head> <script language="JavaScript ... - Krypton
Problem 1 <html> <head> <script language="JavaScript ... - Krypton
Problem 1 <html> <head> <script language="JavaScript ... - Krypton
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>JavaScript</strong> Basics:•Client-side <strong>script</strong> code represented between… tags•Syntax:•To hide from browsers that can not support<strong>JavaScript</strong> use comment delimiters: <strong>JavaScript</strong> in HTMLExample Alert Dialogue Alert Dialogue alert(“Test for Alert Dialogue.”)On Clicking OK returnsto Browser window<strong>JavaScript</strong> Confirm Window Confirm and Alert Dialogue if(confirm(“Want to delete?”)){alert(“deleting.”)} else {alert(“not deleting.”)}Script in the body of theHTML document<strong>JavaScript</strong> Confirm WindowOutputTakes back to Netscape screen4