google.com, pub-4617457846989927, DIRECT, f08c47fec0942fa0 Learn to enjoy every minute of your life.Only I can change my life.

Wednesday, July 10, 2013

Javascript Examples

Example1.html :-

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function Hello()
{
alert("Hello,Welcome and  have a good day.");
}
</SCRIPT>
</HEAD>
<BODY>
<INPUT TYPE="button" NAME="Button" VALUE="Press me" onClick="Hello()">
</BODY>
</HTML>

Output :-




Example2.html :-


<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function Name()
    {
        var answer = prompt("What is your name?", "");
        if (answer)
        alert("God bless You, " + answer);
    }
</SCRIPT>
</HEAD>
<BODY>
<INPUT TYPE="button" NAME="Button" VALUE="Press me" onClick="Name() ">
</BODY>
</HTML>

Output:-




Example3.html:-

<html>
<body>
<p>This example calls a function which performs a calculation, and returns the result:</p>
<script>
function myFunction(a,b)
{
return a*b;
}
document.write(myFunction(7,8));
</script>
</body>
</html>

Output:-
This example calls a function which performs a calculation, and returns the result:
 12



Example4.html:-
<html>
<body>
<script language="JavaScript">
function confirmFunction()
{
var a;
var b=confirm("You have press a button!Do you want to continue?");
if (b==true)
  {
  a="You have pressed OK to continue!";
  }
else
  {
  a="You have pressed Cancel to go back!";
  }
document.write(a);
}
</script>
<p>Example of Confirm box.Click the button below to display a confirm box.</p>
<button onclick="confirmFunction()">Press Me</button>
</body>
</html>

Output:-
Example of Confirm box.Click the button below to display a confirm box.



Exampe5.html :-
<html>
<body>
<p>Click the button to demonstrate the prompt box.</p>
<button onclick="promptFunction()">Press Me</button>
<script>
function promptFunction()
{
var a;
var b=prompt("Please enter your name","");
if (b!=null)
  {
  a="Hello " + b+ "! How are you today?";
  document.write(a);
  }
}
</script>
</body>
</html>

Output :-
Click the button to demonstrate the prompt box.





Example6.html :-
<html>
<body>
<p> Click the button to wait 3 seconds then greets alert "Welcome"</p>
<script language="JavaScript">
function TimeFunction()
{
setTimeout(function(){alert("Welcome to professional-in-computer.blogspot.com")},3000);
}
</script>
<button onClick="TimeFunction()">Press me</button>
</body>
</html>

Output:-
Click the button to wait 3 seconds then greets alert "Welcome"



Tuesday, July 9, 2013

Networking

Computer Network-
 It is an interconnected collection of autonomous computers or system of computers capable of sharing resources and controlling services.
 Interconnecting a set of computers with each other using transmission media is called a network.
The rules governing computer communication are called protocols.
Networking allows us to do the following;:-
1)Exchanging information
2)Sharing hardware resouces
3)Preserving information
4)Protecting information

Network installations is major factor in networking, they are of three types:-
1)Centralized installation
2)Distibuted installation
3)Collaborative installation

Types of networks:-
1)LAN -Local Area Network
2)MAN-Metropolitan Area Network
3)WAN- Wide Area Network

Network Topologies:-
1)Star topology
2)Bus topology
3)Ring topology
4)Mesh topology

Network Configurations:-
1)Network configuration means the method of operating a network by deciding the node authorities.
There are two basic configurations:-
1)Client-Server configuration
2)Peer to Peer configuration

WWW:-
It is World Wide Web one of the internet application.In the internet ,different types of  computers are connected to each other.These computers may have different operating systems.
When the data is to be transformed from one computer to other computer, and the operating system of both the computers are different, then both operating system should understand the data format, which is to be transferred.The www provides an interactive document and the software to access the data on any computer.The document has pages,which can combine text, picture, form, sound, animation and hyperlinks.

अच्छे विचार करे विचार

  पहचान की नुमाईश, जरा कम करें... जहाँ भी "मैं" लिखा है, उसे "हम" करें... हमारी "इच्छाओं" से ज़्यादा "सुन...