Exam 10: Creating Interactivity With Social Media and Javascript
In Pinterest, users can follow _____ that interest them and "pin" photos, links, and comments for future use.
A
Explain the use of pop-up windows.
One common and basic use of JavaScript is to create a pop-up window. Pop-up windows are a quick and simple way to add interactivity and capture your user's attention. To add a pop-up window to an HTML page, use the
script
tags and place your JavaScript code within the
script
element.
You can incorporate three types of pop-up windows in a webpage: an alert box, a confirmation box, and a prompt box. Use an alert box to display a message. This can be useful if you want to grab the user's attention with information about a special promotion. To create an alert box, use the alert( method. Following is an example of an alert box code:
alert("Receive a 20% discount today!";
Use a confirmation box to confirm the user's action, such as to accept changes or to proceed to another page. To create a confirmation box, use the confirm( method. Following is an example of a confirmation box code:
if (confirm("Do you wish to proceed?" {
alert("You selected OK";
}
else {
alert("You chose to Cancel";
}
Use a prompt box to capture information from a user, such as a name, and then perform an action with the information. To create a prompt box, use the prompt( method. Following is an example of a prompt box code:
var name = prompt("What is your name?";
if (name != null {
alert("Hello " + name;
}
else {
alert("You did not tell me your name. ";
}
JavaScript is a(n) _____ scripting language, which means that the browser interprets and renders the JavaScript.
B
_____ is a social networking site used to post short comments or updates.
A social networking site allows members to share information and ideas with fellow online community members.
In Google+, _____ are groups or categories, such as friends, family, and acquaintances.
Use a(n) _____ to accept a user's action, such as to accept changes or to proceed to another page.
Creating a business Twitter account costs a certain amount as it allows businesses to instantly connect and engage with its customers.
_________ are values that are common to a browser (arrays, dates, and strings, for example) that neither depend on nor belong to another object.
Identify the code that shows how an object name and its property are separated.
Navigator, a Javascript object, obtains information about the current web browser.
_____ allows users to apply various filters that enhance photographs, images, and video to make them look more professional.
The JavaScript object _____ describes patterns of characters.
A(n) _____ is how JavaScript associates an action with a function.
Which of the following key items should be considered while creating a Facebook post?
Businesses that use social media display social media icons and links on their website.
For a new window, the minimum value for a width and height value is _____ pixels.
_________ can be a significant opportunity to market products to potential customers because it encourages word-of-mouth advertising.
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)