1. Question: Which of the following can you use to determine whether cookies are enabled in a browser or not?

    A
    (navigator.Cookie)? true : false

    B
    (application.cookieEnabled)? true : false

    C
    (navigator.cookieEnabled)? true : false

    D
    (application.cookie)? true : false

    Note: Not available
    1. Report
  2. Question: Which of the following could you do using JavaScript?

    A
    Form validation

    B
    Display a popup window

    C
    Change the color of the page

    D
    Display an alert

    E
    Prompt the user to enter a value

    F
    All of the Above

    Note: Not available
    1. Report
  3. Question: Consider the following JavaScript validation function:
    <script type="text/JavaScript">
    function ValidateField()
    {
            if(document.forms[0].txtId.value =="")
                    {return false;} 
            return true;
    }
    </script>
    Which of the options will you use for calling this function as soon as the user leaves the field?

    A
    <input name=txtId type="text" onreset="return ValidateField()">

    B
    <input name=txtId type="text" onfocus="return ValidateField()">

    C
    <input name=txtId type="text" onsubmit="return ValidateField()">

    D
    <input name=txtId type="text" onblur="return ValidateField()">

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd