EnsurepassQUESTION 181 You troubleshoot a webpage that contains the following HTML markup: (Line numbers are included for reference only.)     The webpage also contains the following JavaScript function named someEvent() that is declared in the HEAD section of the HTML:   Function someEvent() {   Alert('someEvent fired!');   }   The JavaScript function named someEvent() must run only when the user clicks the DIV element, not the INPUT elements.   You need to modify Read more [...]
EnsurepassQUESTION 161 You develop an HTML5 application. The application uses an image that is returned from an HTTP POST request.   You develop the following code: (Line numbers are included for reference only.)     You need to display the loaded image in the application.   Which code segment should you insert at line 04?     A. Option A B. Option B C. Option C D. Option D   Correct Answer: B     QUESTION 162 You develop an HTML5 Read more [...]
EnsurepassQUESTION 171 You are creating a blog site by using HTML5 and JavaScript. An inline frame enables users to post comments. It is possible for users to inject malicious scripts into their comments.   You need to minimize the ability for malicious scripts to execute on the site.   Which line of code should you use?   A. <iframe sandbox src="frame1.htmlnX/iframe> B. <iframe seamless="allowscripts" src="frame1.html"<>/iframe> C. <iframe seamless Read more [...]
EnsurepassQUESTION 141 You develop an HTML5 webpage that contains the following HTML markup:     You have the following requirements:   Retrieve the content for any OPTION elements when the value of the selected attribute equals selected. Add the content to a comma separated string.   You need to retrieve the required data.   Which two code segments should you add to the webpage? (Each correct answer presents a complete solution. Choose two.)     A. Option Read more [...]
EnsurepassQUESTION 151 You are troubleshooting an application.   Users report that the UI is slow to respond. You need to improve UI responsiveness by moving application tasks to web workers.   Which two tasks can you move to achieve this goal? (Each correct answer presents a complete solution. Choose two.)   A. A function that loops through the Document Object Model to update the style of page elements B. A long-running calculation that requires looping through an array Read more [...]
EnsurepassQUESTION 131 DRAG DROP You are developing a shared library to format information. The library contains a method named _private.   The _private method must never be called directly from outside of the shared library.   You need to implement an API for the shared library.   How should you complete the relevant code? (Develop the solution by selecting the required code segments and arranging them in the correct order. You may not need all of the code segments.)     Read more [...]
EnsurepassQUESTION 121 HOTSPOT You troubleshoot a webpage that includes the following code segment:     You need to evaluate the value of the variable named customer.name.   For each statement in the table, select Yes if the code segment above causes the variable to evaluate as described. Select No if it does not. Make only one selection in each column.     Correct Answer:     QUESTION 122 HOTSPOT You develop an HTML5 webpage that contains the following markup Read more [...]
EnsurepassQUESTION 101 HOTSPOT You develop an HTML messaging application that allows users to send messages. The messages can have an optional file attachment that is identified by a filename.   You use the following function to send a message:     You need to send a message with a file attachment.   How should you complete the relevant code? (To answer, select the appropriate option from each drop-down list in the answer area.)       Correct Answer:   Read more [...]
EnsurepassQUESTION 111 DRAG DROP You create the following JavaScript code:     You must complete the ShowCanWeAfford() function:   Display the message Denied! If the PaymentAmount variable is greater than 500. Display the message Approved! If the PaymentAmount variable is less than 300. Display the message Approved with caution! If the PaymentAmount variable is less than 500 and greater than 300.   You need to add statements to the ShowCanWeAfford() JavaScript function to meet Read more [...]
EnsurepassQUESTION 91 You develop a webpage.   The webpage must display a grid that contains one row and five columns. Columns one, three, and five are the same width. Columns two and four are the same width, but much wider than columns one, three, and five. The grid resembles the following image:     The grid must meet the following requirements:   Each row must be tall enough to ensure that images are not cut off. Each row must contain five columns. The width of the columns Read more [...]
EnsurepassQUESTION 81 You are developing an HTML5 web application and are styling text.   You need to use the text-transform CSS property.   Which value is valid for the text-transform property?   A. Italic B. Line-through C. Capitalize D. 20px   Correct Answer: C Explanation: http://www.w3schools.com/cssref/pr_text_text-transform.asp   none,capitalize,uppercase,lowercase and inherit   Example   Transform text in different elements:   h1 Read more [...]