Posts

Image
Top 10 Programming Languages Important To Learn  Financial and enterprise systems need to perform complicated functions and remain highly organized, requiring languages like Java and C#. Media- and design-related webpages and software will require dynamic, versatile and functional languages with minimal code, such as Ruby, PHP, JavaScript and Objective-C. 1. C Language C  is a high-level and general purpose  programming language  that is ideal for developing firmware or portable applications. Originally intended for writing system software,  C  was developed at Bell Labs by Dennis Ritchie for the Unix Operating System (OS) in the early 1970s.  Dennis MacAlistair Ritchie was an American computer scientist. C  is a very powerful and widely  used  language. It is  used  in many scientific programming  situations. It forms (or is the basis for) the core of the modern languages Java and C++. It al...

JavaScript Program To Show The Current Hostmane And Port Of The Current URL

JavaScript Program To Show The Current Hostmane And Port Of The Current URL <!DOCTYPE html> <html> <body> <p id="demo">Click the button to return the hostname and port of the current URL.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { var x = "Location Host: " + location.host; var y = "Location Port: " + location.port; document.getElementById("demo").innerHTML=x + y; } </script> </body> </html>

A Javascript Program To make (open new window and close that window) button in your web browser.

Image
A Javascript Program To make (open new window and close that window) button in your web browser. < html > < head > < script > function openWin() { myWindow=window.open("","","width=200,height=100"); myWindow.document.write(" <p >This is 'myWindow' </ p >"); } function closeWin() { myWindow.close(); } </ script > </ head > < body > < input type =" button " value =" Open 'myWindow' " onclick =" openWin() " / > < input type =" button " value =" Close 'myWindow' " onclick =" closeWin() " / > </ body > </ html >    

Program To Make the button to demonstrate the prompt box Using JavaScript in HTML

Image
Program To Make the button to demonstrate the prompt box Using JavaScript in HTML This program will show a button in your browser window and when you click on that button, then a prompt box will popup-ed. In that, you will write your name in text box, then click ok and your message or name display in your browser page. <html> <body> <p>Click the button to demonstrate the prompt box.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { var x; var person=prompt("Please enter your name","Harry Potter"); if (person!=null)   {   x="Hello " + person + "! How are you today?";   document.getElementById("demo").innerHTML=x;   } } </script> </body> </html> Thank you for visiting :D :D 

A JavaScript Program To Move New Window To Specified Position Using HTML

Image
A JavaScript Program To Move New Window To Specified Position Using HTML <html> <head> <script> function openWin() { myWindow=window.open('','','width=200,height=100'); myWindow.document.write("<p>This is 'myWindow'</p>"); } function moveWin() { myWindow.moveTo(300,0); myWindow.focus(); } </script> </head> <body> <input type =" button " value =" Open 'myWindow' " onclick =" openWin() " /> <br> <br> <input type =" button " value =" Move 'myWindow' " onclick =" moveWin() " /> </body> </html> OutPut Of This Program::::