Set - 3

Question 6 :

What is the difference between a web-garden and a web-farm?

Answer :

Web-garden - An IIS6.0 feature where you can configure an application pool as a web-garden and also specify the number of worker processes for that pool. It can help improve performance in some cases.
Web-farm - a general term referring to a cluster of physically separate machines, each running a web-server for scalability and performance (contrast this with web-garden which refers to multiple processes on one single physical machine).


Question 7 :

How to get the contents of an input box using Javascript? 

Answer :

Use the "value" property.

var myValue = window.document.getElementById("MyTextBox").value;


Question 8 :

How to determine the state of a checkbox using Javascript?

Answer :

var checkedP = window.document.getElementById("myCheckBox").checked;


Question 9 :

How to set the focus in an element using Javascript? 

Answer :

<script> function setFocus() { if(focusElement != null) { document.forms[0].elements["myelementname"].focus(); } } </script>


Question 10 :

How to access an external javascript file that is stored externally and not embedded? 

Answer :

This can be achieved by using the following tag between head tags or between body tags.

<script src="abc.js"></script>How to access an external javascript file that is stored externally and not embedded? where abc.js is the external javscript file to be accessed.