shlok.mobi
General Knowledge Questions and Answers - 1394
javascript
Questions and Answers
Prepare for Interview
Question:
How can JavaScript be used to improve the "look and feel" of a Web site? By the same token, how can JavaScript be used to improve the user interface?
Answer:
"On their own, Web pages tend to be lifeless and flat unless you add animated images or more bandwidth-intensive content such as Java applets or other content requiring plug-ins to operate (ShockWave and Flash, for example). Embedding JavaScript into an HTML page can bring the page to life in any number of ways. Perhaps the most visible features built into pages recently with the help of JavaScript are the so-called image rollovers: roll the cursor atop a graphic image and its appearance changes to a highlighted version as a feedback mechanism to let you know precisely what you're about to click on. But there are less visible yet more powerful enhancements to pages that JavaScript offers. Interactive forms validation is an extremely useful application of JavaScript. While a user is entering data into form fields, scripts can examine the validity of the data--did the user type any letters into a phone number field?, for instance. Without scripting, the user has to submit the form and let a server program (CGI) check the field entry and then report back to the user. This is usually done in a batch mode (the entire form at once), and the extra transactions take a lot of time and server processing power. Interactive validation scripts can check each form field immediately after the user has entered the data, while the information is fresh in the mind. Another helpful example is embedding small data collections into a document that scripts can look up without having to do all the server programming for database access. For instance, a small company could put its entire employee directory on a page that has its own search facility built into the script. You can cram a lot of text data into scripts no larger than an average image file, so it's not like the user has to wait forever for the data to be downloaded. Other examples abound, such as interactive tree-structure tables of contents. More modern scriptable browsers can be scripted to pre-cache images during the page's initial download to make them appear lickety-split when needed for image swapping. I've even written some multi-screen interactive applications that run entirely on the client, and never talk to the server once everything is downloaded."


More Questions :
  • How do you convert numbers between different bases in JavaScript?
  • unescape(), escape()
  • What are the boolean operators supported by JavaScript?
  • How is JavaScript different from Java?
  • What is the difference between a web-garden and a web-farm?
  • What does javascript null mean?
  • decodeURI(), encodeURI()
  • What does isNaN function do?
  • What does 3+4+"7" evaluate to?
  • What looping structures are there in JavaScript?
  • What would be the output of the following statements?
    var object1 = { same: 'same' };
    var object2 = { same: 'same' };
    console.log(object1 === object2);
  • What is this? var myArray = [[[]]];
  • How to detect the operating system on the client machine?
  • How can JavaScript be used to improve the "look and feel" of a Web site? By the same token, how can JavaScript be used to improve the user interface?
  • How to create arrays in JavaScript?
  • What does "1"+2+4 evaluate to?
  • How to determine the state of a checkbox using Javascript?
  • What is the difference between an alert box and a confirmation box?
  • How about 2+5+"8"?
  • What is the difference between SessionState and ViewState?
  • Test your English Language
  • Comics of the Day
  • Top Fastest Bikes in theworld
  • Bangkok
  • Incredible Meals You Can Make In A Mason Jar
  • JavaScript Interview Q & A
  • Homemade Christmas Food Gifts
  • What to Eat in Jammu and Kashmir
  • New Hairstyles For Girls
  • Most Crowded Places on Earth
  • IBPS Exams
  • Chinese New Year
  • Teachers Day
  • Most Famous Landmarks Around the World
  • Jhansi
  • Meaning of Indian Names - Quiz
  • Class 8 - Friction
  • Romantic Things To Buy Love
  • How to Remove Dark Circles Tips
  • Loan Balance Calculator
  • The Highest Speed Cars in the world
  • Valentines Day Dessert Recipes
  • loading...

    Did you Know :

    Sea : bass strait
    area : 75,000 sq. km
    avg. depth : 70 mts.
    More ...

    Shlok Consultants