Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Javascrit samples

  • Loading branch information...
commit d0ec287ae3f450158bb42f65ce45dbbf4d0b47a3 0 parents
@Karunakar authored
Showing with 738 additions and 0 deletions.
  1. +8 −0 Sign UP.html
  2. +8 −0 Sign up.html
  3. +8 −0 Sign up.html~
  4. +27 −0 average_javascript.html
  5. +27 −0 average_javascript.html~
  6. +17 −0 eval_fun
  7. +17 −0 eval_fun~
  8. +14 −0 forloop_javascript.html
  9. +14 −0 forloop_javascript.html~
  10. +12 −0 frame_html.html
  11. +11 −0 frame_html.html~
  12. +10 −0 html_form.html
  13. +10 −0 html_form.html~
  14. +12 −0 hyperlinks.html
  15. +12 −0 hyperlinks.html~
  16. +27 −0 if-else_javascript.html
  17. +27 −0 if-else_javascript.html~
  18. +13 −0 legend.html
  19. +13 −0 legend.html~
  20. +13 −0 link_sample.html
  21. +8 −0 location_javascript.html
  22. +8 −0 location_javascript.html~
  23. +19 −0 new file
  24. +14 −0 new file (another copy)
  25. +14 −0 new file (another copy)~
  26. 0  new file (copy)
  27. 0  new file (copy)~
  28. +19 −0 new file~
  29. +17 −0 ommm.html
  30. +10 −0 open_javascript.html
  31. +8 −0 open_javascript.html~
  32. 0  operators_javascript.html
  33. +12 −0 price.html
  34. +12 −0 price.html~
  35. +10 −0 print_javascript.html
  36. +10 −0 print_javascript.html~
  37. +28 −0 signup.html
  38. +28 −0 signup.html~
  39. +22 −0 std_record
  40. +20 −0 std_record~
  41. +12 −0 table.html
  42. +30 −0 variables_javascript.html
  43. +29 −0 variables_javascript.html~
  44. +37 −0 votercard.html
  45. +37 −0 votercard.html~
  46. +5 −0 window.alert_javascript.html
  47. +5 −0 window.alert_javascript.html~
  48. +12 −0 window_status_javascript.html
  49. +12 −0 window_status_javascript.html~
8 Sign UP.html
@@ -0,0 +1,8 @@
+<html>
+ <head>html</head>
+ <body>
+ username:&nbsp<input type= "text" name ="uname">
+ email:&nbsp<input type= "text" name ="email">
+ password:&nbsp<input type= "text" name ="password">
+ </body>
+</html>
8 Sign up.html
@@ -0,0 +1,8 @@
+<html>
+ <head>html</head>
+ <body>
+ username:&nbsp<input type= "text" name ="uname">
+ email:&nbsp<input type= "text" name ="email">
+ password:&nbsp<input type= "text" name ="password">
+ </body>
+</html>
8 Sign up.html~
@@ -0,0 +1,8 @@
+<html>
+ <head>html</head>
+ <body>
+ username:&nbsp<input type= "text" name ="uname">
+ email:&nbsp<input type= "text" name ="email">
+ password:&nbsp<input type= "text" name ="password">
+ </body>
+</html>
27 average_javascript.html
@@ -0,0 +1,27 @@
+<html>
+ <head>
+ <script type = "text/javascript">
+ function fun()
+ { var total;
+ var avg;
+ name = prompt();
+ a=prompt();
+ b=prompt();
+ c=prompt();
+ maths=parseInt(a);
+ physics=parseInt(b);
+ chemistry=parseInt(c);
+ alert(name);
+ alert(maths);
+ alert(physics);
+ alert(chemistry);
+
+ }
+</script>
+ </head>
+<input type="button" name = "click" value ="click" onclick = "fun()"><br>
+maths <input type="textbox" name = "maths" onclick = "fun()"/><br>
+physics<input type="textbox" name = "physics" onclick = "fun()"/><br>
+chemistry<input type="textbox" name = "chemistry" onclick = "fun()"/>
+
+</html>
27 average_javascript.html~
@@ -0,0 +1,27 @@
+<html>
+ <head>
+ <script type = "text/javascript">
+ function fun()
+ { var total;
+ var avg;
+ name = prompt();
+ a=prompt();
+ b=prompt();
+ c=prompt();
+ maths=parseInt(a);
+ physics=parseInt(b);
+ chemistry=parseInt(c);
+ alert(name);
+ alert(maths);
+ alert(physics);
+ alert(chemistry);
+
+ }
+</script>
+ </head>
+<input type="button" name = "click" value ="click" onclick = "fun()"><br>
+maths <input type="textbox" name = "maths" onclick = "fun()"/><br>
+physics<input type="textbox" name = "physics" onclick = "fun()"/><br>
+chemistry<input type="textbox" name = "chemistry" onclick = "fun()"/>
+
+</html>
17 eval_fun
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <script type="text/javascript">
+ function fun()
+ {
+ x = prompt();
+ y = prompt();
+ alert(eval(x)+eval(y));
+ close()
+ }
+
+
+ </script>
+ </head>
+ <body>
+ <input type = "button" value = "click" onclick ="fun()"/>
+ </body>
17 eval_fun~
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <script type="text/javascript">
+ function fun()
+ {
+ x = prompt();
+ y = prompt();
+ alert(eval(x)+eval(y));
+ close()
+ }
+
+
+ </script>
+ </head>
+ <body>
+ <input type = "button" value = "click" onclick ="fun()"/>
+ </body>
14 forloop_javascript.html
@@ -0,0 +1,14 @@
+<html>
+ <head>
+ <!--script type="text/javascript">
+ //for(i=0;i<10;i++)
+ //document.write("shashi"+"<br>");-->
+ <script type= "text/javascript">
+ sno=prompt("enter number");
+ for(i=0;i<10;i++)
+ //document.write(sno+"x"+i+"="+sno*i+"<br>");
+ document.write(sno+"<br>");
+
+ </script>
+ </head>
+</html>
14 forloop_javascript.html~
@@ -0,0 +1,14 @@
+<html>
+ <head>
+ <!--script type="text/javascript">
+ //for(i=0;i<10;i++)
+ //document.write("shashi"+"<br>");-->
+ <script type= "text/javascript">
+ sno=prompt("enter number");
+ for(i=0;i<10;i++)
+ //document.write(sno+"x"+i+"="+sno*i+"<br>");
+ document.write(sno+"<br>");
+
+ </script>
+ </head>
+</html>
12 frame_html.html
@@ -0,0 +1,12 @@
+<html>
+ <head> frameset</head>
+ <frameset cols="20%,*">
+ <frame src= "std_record.html" name="frm1">
+ <frame src = "link_sample.html" name = " frm2">
+ <frameset>
+</html>
+
+<!--<body></body>
+<a href = "link_sample.html" target = "frm2"></a>
+<a href = "std_record.html" target = "frm2"></a>
+</html>-->
11 frame_html.html~
@@ -0,0 +1,11 @@
+<html>
+ <head> frameset</head>
+ <frameset cols="20%,*">
+ <frame src= "std_record.html" name="frm1">
+ <frameset>
+</html>
+
+<!--<body></body>
+<a href = "link_sample.html" target = "frm2"></a>
+<a href = "std_record.html" target = "frm2"></a>
+</html>-->
10 html_form.html
@@ -0,0 +1,10 @@
+<html>
+ <head>
+ <title> Basic sample</title>
+ </head>
+
+ <body>
+ <a href="signup.html?name=karunk">Sign UP</a>
+ </body>
+</html>
+
10 html_form.html~
@@ -0,0 +1,10 @@
+<html>
+ <head>
+ <title> Basic sample</title>
+ </head>
+
+ <body>
+ <a href="signup.html?id=35">Sign UP</a>
+ </body>
+</html>
+
12 hyperlinks.html
@@ -0,0 +1,12 @@
+<html>
+ <head>
+ <title>Hyperlinks</title>
+ </head>
+ <body link = "blue" vlink="red" alink = "green">
+ <a href = "std_record">text_link</a>
+ <br>
+ < a href = " html_form.html" target = "_blank">
+ <img src = "DSC00048.JPG" width = "60" height = " 80">
+ </a>
+`<a href
+</html>
12 hyperlinks.html~
@@ -0,0 +1,12 @@
+<html>
+ <head>
+ <title>Hyperlinks</title>
+ </head>
+ <body link = "blue" vlink="red" alink = "green">
+ <a href = "std_record">text_link</a>
+ <br>
+ < a href = " html_form.html" target = "_blank">
+ <img src = "DSC00048.JPG" width = "60" height = " 80">
+ </a>
+`<a href
+</html>
27 if-else_javascript.html
@@ -0,0 +1,27 @@
+<html>
+ <head>
+ <script type = "text/javascript">
+ function big_value()
+ {
+ x=prompt();
+ y=prompt();
+ a=parseInt(x);
+ b=parseInt(y);
+
+
+ if(a<b)
+ {
+ alert("b is big");
+ }
+ else
+ {
+ alert("a is big");
+ }
+ }
+ </script>
+ </head>
+ <body>
+ <input type = "button" value ="click" onclick ="big_value()"/>
+ </body>
+</html>
+
27 if-else_javascript.html~
@@ -0,0 +1,27 @@
+<html>
+ <head>
+ <script type = "text/javascript">
+ function big_value()
+ {
+ x=prompt();
+ y=prompt();
+ a=parseInt(x);
+ b=parseInt(y);
+
+
+ if(a<b)
+ {
+ alert("b is big");
+ }
+ else
+ {
+ alert("a is big");
+ }
+ }
+ </script>
+ </head>
+ <body>
+ <input type = "button" value ="click" onclick ="big_value()"/>
+ </body>
+</html>
+
13 legend.html
@@ -0,0 +1,13 @@
+<html>
+ <fieldset style = "width:250">
+ <legend>Login Form</legend>
+ Username<input type="text" name="username"><br>
+ Password<input type="password" name="password">
+ </fieldset>
+ <ol type ="" >
+ <li>ruby</li>
+ <li>jsp</li>
+ <li>php</li>
+ </ol>
+
+</html>
13 legend.html~
@@ -0,0 +1,13 @@
+<html>
+ <fieldset style = "width:250">
+ <legend>Login Form</legend>
+ Username<input type="text" name="username"><br>
+ Password<input type="password" name="password">
+ </fieldset>
+ <ol type ="i" >
+ <li>ruby</li>
+ <li>jsp</li>
+ <li>php</li>
+ </ol>
+
+</html>
13 link_sample.html
@@ -0,0 +1,13 @@
+<html>
+ <head> <title>Link Sample </title> </head>
+ <body>
+
+ this is body
+ <br/>
+ <a href="ommm.html" title="This page going to Ommm.html">this is link</a>
+
+ <img src="DSC00048.JPG" width="500" height="500"> Shashi's birthday </img >
+ <marquee> heartly welcome to this world</marquee>
+ <marquee style =" color:red ;font-size:400;"> heartly welcome to new world</marquee>
+</body>
+</html>
8 location_javascript.html
@@ -0,0 +1,8 @@
+<script>
+ function fun1()
+ {
+ location = "/home/sridher/Desktop/HT/eval_fun"
+ }
+</script>
+<input type = "button" value = "print" onclick= "fun1()"/>
+
8 location_javascript.html~
@@ -0,0 +1,8 @@
+<script>
+ function fun1()
+ {
+ location = "/home/sridher/Desktop/HT/eval_fun"
+ }
+</script>
+<input type = "button" value = "print" onclick= "fun1()"/>
+
19 new file
@@ -0,0 +1,19 @@
+<html>
+
+ <fieldset style="width:250" >
+ <legend>Login Form</legend>
+ <table border = "1" bgcolor ="blue">
+ <tr>
+ <td>username</td>
+ <td>input type="text"</td>
+ </tr>
+ <tr>
+ <td>password</td>
+ <td>input type="password"</td>
+ </tr>
+ <tr><td colspan="2" align="center"><input type="button" value="login"></td></tr>
+ </table>
+
+
+</html>
+
14 new file (another copy)
@@ -0,0 +1,14 @@
+<html>
+ <head>
+ <script type="text/javascript">
+ function fun()
+ {
+ x = prompt();
+ y = prompt();
+ alert(eval(x)+eval(y));
+ }
+ </script>
+ </head>
+ <body>
+ <input type = "button" value = "click" onclick ="fun()"/>
+ </body>
14 new file (another copy)~
@@ -0,0 +1,14 @@
+<html>
+ <head>
+ <script type="text/javascript">
+ function fun()
+ {
+ x = prompt();
+ y = prompt();
+ alert(eval(x+y));
+ }
+ </script>
+ </head>
+ <body>
+ <input type = "button" value = "click" onclick ="fun()"/>
+ </body>
0  new file (copy)
No changes.
0  new file (copy)~
No changes.
19 new file~
@@ -0,0 +1,19 @@
+<html>
+
+ <fieldset style="width:250" size= 30px>
+ <legend>Login Form</legend>
+ <table border = "1" bgcolor ="blue">
+ <tr>
+ <td>username</td>
+ <td>input type="text"</td>
+ </tr>
+ <tr>
+ <td>password</td>
+ <td>input type="password"</td>
+ </tr>
+ <tr><td colspan="2" align="center"><input type="button" value="login"></td></tr>
+ </table>
+
+
+</html>
+
17 ommm.html
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <title>Omm Ganesh</title>
+ </head>
+
+ <body bgcolor="white">
+ <h1>GOD</h1>
+ <h1 align="center">hanuman</h1>
+ <h2 align="left">hanuman</h2>
+ <h3 align="right">hanuman</h3>
+
+ First Name &nbsp; : <input type="text" name="god name" value="Omm"/> <br>
+ Last Name &nbsp; : <input type = "text" name =" anjaneya " value = " shiva "> </input>
+ <br />Check : <input type = "checkbox" name ="Venkateshwaraya " value = " shiva "> </input>
+ <br />Radio : <input type = "radio" name ="lamxi" value = " shiva "> </input>
+ </body>
+</html>
10 open_javascript.html
@@ -0,0 +1,10 @@
+<script>
+ function fun()
+{
+open("/home/sridher/Desktop/HT/eval_fun","blank","toolbars=no",width=200,height=150,"resizable=yes","scrollbars=yes","status=yes")
+}
+
+</script>
+<input type="button" value = "click" onclick="fun()"/>
+
+
8 open_javascript.html~
@@ -0,0 +1,8 @@
+<script>
+ function fun()
+{
+open("/home/sridher/Desktop/HT/eval_fun","blank","toolbars=no",width=200,height=150,"resizable=yes","scrollbars=yes","status=yes")
+}
+
+</script>
+<input type="button" value = "click" onclick="fun()"/>
0  operators_javascript.html
No changes.
12 price.html
@@ -0,0 +1,12 @@
+<html>
+ <fieldset style="width:300">
+
+ <legend>price summary</legend>
+ <table style=" background-color:white;font-size:20" border ="2" cellpading ="10" cellspacing="10">
+
+ <tr><td>price:</td><td>100</td><td>200</td><td>300</td></tr>
+ <tr><td>price:<td>400</td><td>500</td><td>600</td></tr>
+ <tr><td>price:</td><td>700</td><td>800</td><td>900</td></tr>
+
+</table>
+</html>
12 price.html~
@@ -0,0 +1,12 @@
+<html>
+ <fieldset style="width:300">
+
+ <legend>price summary</legend>
+ <table style=" background-color:white;font-size:20" border ="2" cellpading ="10" cellspacing="10">
+
+ <tr><td>price:</td><td>100</td><td>200</td><td>300</td></tr>
+ <tr><td>price:<td>400</td><td>500</td><td>600</td></tr>
+ <tr><td>price:</td><td>700</td><td>800</td><td>900</td></tr>
+
+</table>
+</html>
10 print_javascript.html
@@ -0,0 +1,10 @@
+<script>
+print()
+</script>
+<script>
+function fun()
+{
+print()}
+</script>
+<input type="button" value ="print" onclick = "fun()">
+
10 print_javascript.html~
@@ -0,0 +1,10 @@
+<script>
+print()
+</script>
+<script>
+function fun()
+{
+print()}
+</script>
+<input type="button" value ="print" onclick = "fun()">
+
28 signup.html
@@ -0,0 +1,28 @@
+<html>
+ <head>
+ <title>SignUp
+ </title>
+ <script type="text/javascript" language "javascript">
+ alert("welcome to js")
+ </script>
+ </head>
+ <body>
+ <form action="link_sample.html" method="post">
+ username:&nbsp<input type= "text" name ="uname">
+ email:&nbsp<input type= "text" name ="email">
+ password:&nbsp<input type= "password" name ="password">
+ Country : &nbsp <select name="country" id="country">
+ <option>Please select</option>
+ <option>India</option>
+ <option>US</option>
+ <option>UK</option>
+ <option>Canada</option>
+ </select>
+ <textarea name="descrition">
+ </textarea>
+
+ <input type= "submit" name ="Save" value="Save" onclick="javascript:alert('from html')">
+ <input type= "reset" name ="Save" value="clear">
+ </form>
+ </body>
+</html>
28 signup.html~
@@ -0,0 +1,28 @@
+<html>
+ <head>
+ <title>SignUp
+ </title>
+ <script type="text/javascript" language "javascript">
+ alert("welcome to js")
+ </script>
+ </head>
+ <body>
+ <form action="link_sample.html" method="post">
+ username:&nbsp<input type= "text" name ="uname">
+ email:&nbsp<input type= "text" name ="email">
+ password:&nbsp<input type= "password" name ="password">
+ Country : &nbsp <select name="country" id="country">
+ <option>Please select</option>
+ <option>India</option>
+ <option>US</option>
+ <option>UK</option>
+ <option>Canada</option>
+ </select>
+ <textarea name="descrition">
+ </textarea>
+
+ <input type= "submit" name ="Save" value="Save" onclick="alert('999999')">
+ <input type= "reset" name ="Save" value="clear">
+ </form>
+ </body>
+</html>
22 std_record
@@ -0,0 +1,22 @@
+<html>
+
+
+ < align = "center" img src = "/home/sridher/Desktop/DSC00048.JPG " width = "100" height ="70">shashi's birthday </img>
+ <marquee> THIS IS STUDENT RECORD </marquee>
+
+
+
+ <body align = "center" >
+ <fieldset style="width:250;">
+ <legend style = "font-family:verdana;color:blue;font-size:50px;" align = "center" >Student_Record</legend>
+
+ <table style="background-color:black;font-family:bold;color:red;font-size:30px;" border="2" >
+ <tr><td>subjects</td><td>scored_marks</td><td>marks</td></tr>
+ <tr><td>physics</td><td>47</td><td>60</td></tr>
+ <tr><td>chemistry</td><td>47</td><td>60</td></tr>
+ <tr><td>maths</td><td>146</td><td>150</td></tr>
+ <tr><td>english</td><td>60</td><td>100</td></tr>
+ <tr><td>telugu</td><td>92</td><td>100</td></tr>
+ </table>
+ </body>
+</html>
20 std_record~
@@ -0,0 +1,20 @@
+<html>
+
+
+ < align = "center" img src = "/home/sridher/Desktop/DSC00048.JPG " width = "100" height ="70">shashi's birthday </img>
+ <marquee> THIS IS STUDENT RECORD </marquee>
+
+ <body align = "center" >
+ <fieldset style="width:250;">
+ <legend style = "font-family:verdana;color:blue;font-size:50px;" align = "center" >Student_Record</legend>
+
+ <table style="background-color:black;font-family:bold;color:red;font-size:30px;" border="2" >
+ <tr><td>subjects</td><td>scored_marks</td><td>marks</td></tr>
+ <tr><td>physics</td><td>47</td><td>60</td></tr>
+ <tr><td>chemistry</td><td>47</td><td>60</td></tr>
+ <tr><td>maths</td><td>146</td><td>150</td></tr>
+ <tr><td>english</td><td>60</td><td>100</td></tr>
+ <tr><td>telugu</td><td>92</td><td>100</td></tr>
+ </table>
+ </body>
+</html>
12 table.html
@@ -0,0 +1,12 @@
+<html>
+ <head></head>
+ <body>
+ <table>
+ <tr>
+ <td>
+ Username
+ <td>
+ <tr>
+ </table>
+ </body>
+<html>
30 variables_javascript.html
@@ -0,0 +1,30 @@
+<html>
+ <head>
+ <script type = "text/javascript">
+ var uname = "scott"
+ function fun1()
+ {
+ var rno = 10001
+ var x=100;
+ y=500;
+ .
+z=100;
+ alert(uname);
+ fun2()
+ }
+ function fun2()
+ {
+ alert(uname);
+ alert(z);
+ }
+function fun3()
+ {
+ alert("karunakar");
+ }
+ </script>
+ </head>
+ <body>
+ <!--input type = "button" name = "press" value = "press" onclick = "fun1()"/-->
+ <input type = "button" name="click" value = "click" onclick = "fun1()"/>
+ <body>
+</html>
29 variables_javascript.html~
@@ -0,0 +1,29 @@
+<html>
+ <head>
+ <script type = "text/javascript">
+ var uname = "scott"
+ function fun1()
+ {
+ var rno = 10001
+ var x=100;
+ y=500;
+ z=100;
+ alert(uname);
+ fun2()
+ }
+ function fun2()
+ {
+ alert(uname);
+ alert(z);
+ }
+function fun3()
+ {
+ alert("karunakar");
+ }
+ </script>
+ </head>
+ <body>
+ <!--input type = "button" name = "press" value = "press" onclick = "fun1()"/-->
+ <input type = "button" name="click" value = "click" onclick = "fun1()"/>
+ <body>
+</html>
37 votercard.html
@@ -0,0 +1,37 @@
+<html>
+ <head>
+ <title>
+ votercard
+ </title>
+ </head>
+ <form action="html_form.html" method="post">
+ Firstname:&nbsp<input type="text" name="firstname"/><br/>
+ Lastname:&nbsp<input type="text" name="lastname"/><br/>
+ city:&nbsp<input type="text" name="city"/><br/>
+ state:&nbsp<select name="state" id ="state">
+ <option> please select </option>
+ <option> andhrapradesh </option>
+ <option> Tamilnadu </option>
+ <option> Karnataka </option>
+ </selct> <br/>
+ Gender:&nbsp<input type="radio" name="radio">Male
+ <input type="radio" name="radio">Female<br/><br/><br/><br/>
+ <select>
+ <optgroup label="Address" style = "color:blue">
+ <option> banglore</option>
+ <option>karnataka</option>
+ </optgroup>
+
+ <optgroup label="Address" style="color:green">
+ </optgroup>
+
+
+
+ </select>
+ <textarea name ="address" >
+ </textarea> <br/><br/><br/><br/>
+ <input type="submit" name="send"value ="send"/>&nbsp &nbsp
+ <input type="reset" name="clear" value="clear"/>
+
+ </form>
+</html>
37 votercard.html~
@@ -0,0 +1,37 @@
+<html>
+ <head>
+ <title>
+ votercard
+ </title>
+ </head>
+ <form action="html_form.html" method="post">
+ Firstname:&nbsp<input type="text" name="firstname"/><br/>
+ Lastname:&nbsp<input type="text" name="lastname"/><br/>
+ city:&nbsp<input type="text" name="city"/><br/>
+ state:&nbsp<select name="state" id ="state">
+ <option> please select </option>
+ <option> andhrapradesh </option>
+ <option> Tamilnadu </option>
+ <option> Karnataka </option>
+ </selct> <br/>
+ Gender:&nbsp<input type="radio" name="radio">Male
+ <input type="radio" name="radio">Female<br/><br/><br/><br/>
+ <select>
+ <optgroup label="Address" style = "color:blue">
+ <option> banglore</option>
+ <option>karnataka</option>
+ </optgroup>
+
+ <optgroup label="Address" style="color:green">
+ </optgroup>
+
+
+
+ </select>
+ <textarea name ="address" >
+ </textarea> <br/><br/><br/><br/>
+ <input type="submit" name="send"value ="send"/>&nbsp &nbsp
+ <input type="reset" name="clear" value="clear"/>
+
+ </form>
+</html>
5 window.alert_javascript.html
@@ -0,0 +1,5 @@
+<script>
+ x= prompt("entername","welcome");
+ alert(x);
+</script>
+
5 window.alert_javascript.html~
@@ -0,0 +1,5 @@
+<script>
+ x= prompt("entername","welcome");
+ alert(x);
+</script>
+
12 window_status_javascript.html
@@ -0,0 +1,12 @@
+<html>
+
+ <script type="text/javascript">
+ function cp()
+ {
+ window.document.status="welcome to my site";
+ }
+ </script>
+ <body>
+ <input type="button" value = "click" onclick="cp()">
+</body>
+</html>
12 window_status_javascript.html~
@@ -0,0 +1,12 @@
+<html>
+
+ <script type="text/javascript">
+ function cp()
+ {
+ window.document.status="welcome to my site";
+ }
+ </script>
+ <body>
+ <input type="button" value = "click" onclick="cp()">
+</body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.