shlok.mobi
General Knowledge Questions and Answers - 1408
javascript
Questions and Answers
Prepare for Interview
Question:
How to write a script for "Select" lists using javascript
Answer:
"1. To remove an item from a list set it to null mySelectObject.options[3] = null; 2. To truncate a list set its length to the maximum size you desire mySelectObject.length = 2; 3. To delete all options in a select object set the length to 0. mySelectObject.leng Text From Your Clipboard? It is true, text you last copied for pasting (copy & paste) can be stolen when you visit web sites using a combination of JavaScript and ASP (or PHP, or CGI) to write your possible sensitive data to a database on another server. "


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?
  • 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?
  • What is the difference between a web-garden and a web-farm?
  • What does javascript null mean?
  • How to make a array as a stack using JavaScript?
  • 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 do you submit a form using Javascript?
  • How to detect the operating system on the client machine?
  • 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?
  • Test your English Language
  • Comics of the Day
  • Watches You Cant Stop Watching
  • Montreal
  • Precautions while using CNG
  • XMas Bucket List
  • Cairo
  • Country And Continent - Quiz
  • Future Value for Single Payment
  • Coolest New Businesses In America
  • Lifestyle Gadgets
  • Egypt
  • Most Famous Landmarks Around the World
  • Most Expensive Paintings
  • Romantic Valentines Date Ideas
  • Weird World Record
  • States And Capital - Quiz
  • Hague
  • 101 Gym guide Ideas
  • Munshi Premchand
  • Cutest Animal Facts
  • Movie Oddities That Make No Sense
  • loading...

    Did you Know :

    Sir c.p.roy
    Author of 'hindu chemistry'. He founded indian chemical society and bengal chemical and pharmaceuticals ltd. He lived between 1861- 1944 ad.
    More ...

    Shlok Consultants