Assume your html file contains the following subset of code and already has a link to a javascript file: Enter Comments: Create a function that will pop-up an alert message when the user enters a comment. Use blur event handler and name your function thankYou(). The alert should contain he message: "Thank you for your comments".
Q: Let's get some practice using addEventListener. I've provided you with two buttons, each with an id:…
A: In this question there are two buttons given. We need to add a click listener to each button. The…
Q: In html, Create a function called calculator(num, x) that will perform a squareRoot(x), squared(x)…
A: As per the requirement program is completed. Algorithm: Step 1: Write 1, 2, 3 calculator buttons in…
Q: Create a User object to store the data and use the email address as the key and the user object as…
A: <html><head><title>Registration Page</title><script…
Q: file should contain an h1 heading element that includes your full name and student number. (Do not…
A: NOTE: Replace myName in the html file with your name for the id value. NOTE2: Replace the value of…
Q: Create an HTML form that has a number of textboxes write a javascript code that verifies all…
A: Step 1 The code is given in the below step
Q: What does the following JavaScript code do (assume it is in a script element)? function myFcn( a,…
A: There is a JavaScript script given. We have to find its output and choose the right option from the…
Q: You have been given an HTML file called registrationForm.html which creates an HTML form to collect…
A: Brower output of the registrationForm.html document Please find below the code:
Q: write a JavaScript function in the folling html code that performs the following tasks: Prompt users…
A: Javascript is a scripting programming language for web pages. The javascript code can be written for…
Q: Create an html form by using inputs fields given below.Write also the code for thebuttons in…
A: <html><head><title>Calculator</title><script…
Q: a programmer wants to have a video file on his website the video should start playing as soon as…
A: <!--Basic syntax--> <video src = "ooo.mp4" width = " " height = " " controls> Your…
Q: Write a JavaScript code that manipulates the HTML Grouping selector
A: JavaScript:- Java Script can be both server-side and client-side. Client-side javascript is the…
Q: HTML/CSS JAVASCRIPT please help me answer this question I will give you a good rating Thank you!…
A: 1. When the button is clicked, the text written in the text box is copied to the id "p1" and the…
Q: To link an external CSS file with the name of "style.css" we have to add one of the following:…
A: The HTML(HyperText Markup Language) used to create a webpage and CSS(Cascading Style Sheet)used to…
Q: xplain what below file types are for. Extension Type (text, audio, etc..) .txt .mp4 .wmv .mov .html…
A: .txt. Plain text file .mp4 MPEG-4 Video File. .wmv Media Video File
Q: Create an html form by using inputs fields given below. Write also the code for the buttons in…
A: Code: <html><head><title>Calculator</title><script…
Q: 01: Examine the following HTML Form: Enter Course Code: ITCS347 Enter Tests Marks seperated by comma…
A: ANSWER:-
Q: You have an HTML document in your Flash Disk called MYCV.html and graphic file called MyPhoto.gif.…
A: <html><body> <h3>Gif Link</h3> <p>The gif is a link. Please click on…
Q: Assume you have the following html code: /* Your code goes here */ Lorem ipsum dolor sit…
A: For given CSS conditions i have added all that styles in HTML and provide output below.
Q: 3- The user wants to insert an image with the filename: UTAS.JPG with a height and width of 50px…
A: Refer to step 2 for the answer.
Q: 1- Write an html page that contains: a. In the head section, a JavaScript function called Sum().…
A: I have added the comments in the code. As required, the Sum function has been added and the Arial…
Q: When you insert a graphic into the header and footer of a document to create a watermark, you also…
A: The question has been answered in step2
Q: SThe default color for a page is defined in the body selector Select one: O True O False
A: Refer to step 2 for the answer.
Q: Write an HTML code to display the following form. Then write a JavaScript function to validate the…
A: required: We need to create an HTML page similar to what given in the question and add functionality…
Q: Create a page that will allow users to enter the total amount for a bill, the number of people…
A: Below are the HTML, CSS and JavaScript codes for your use. Save the below html code as…
Q: In Javascript, Create a mouseOver event function, that will change the colour of an HTML item (i.e.…
A: In this question we are asked to create a button or list and on hovering till 5 seconds color should…
Q: Given the following combo box and its HTML source code: Your wilayat: |- choose v You have to choose…
A: $_POST is a global variable which is used to collect form data after submitting an HTML form with…
Q: an someone please fix the error, the error is that my else statement isn't working in this scenario.…
A: <!DOCTYPE HTML> <html> <head> <title> example of onclick button…
Q: Write down the code to apply the following properties: 1- Adding the following list to window…
A: Solution is given below:-
Q: Attach Code and output of following task. Output should be same as given in image. Write the HTML…
A: The code requires CSS too with HTML table tag since some features to each of the cells are common.…
Q: Q2 Design a web page (name it q2.html), which uses Bootstrap framework, to display the following…
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining…
Q: Using HTML, create a webpage that contains the following ficlds: a. A text box to enter name…
A: Code : <html> <head> <title>PHP Test</title> </head> <style>…
Q: In a HTML5 document, code the followings: • Using an onload event, trigger a pop-up window showing…
A: Since you have posted multiple question, we will solve the first question for you. If you want any…
Q: HTML Perceivable Operable Understandable Question In the navigation section, add a…
A: Answer: HTML Source Code: <!DOCTYPE html> <!-- Student Name: File Name: index.html…
Q: Based on the following specification, code one webpage using HTML5, CSS and JavaScript. HTML5:…
A: Code <!DOCTYPE html><html><head>…
Q: Create a new file cart.html You must get and set the data on the web page by using…
A: Code: <html> <head> <script> cartTotal=()=>{…
Q: A) Set the size of the image to 250 pixels wide and 400 pixels tall. B) Is the following HTML file…
A: A)<img src="img.jpg" width="250px" height="600">
Q: HTML/CSS JAVASCRIPT please help me answer this question I will give you a good rating Thank you!…
A: As online compilers does not supports seperate code for java script and css, i have written it as…
Q: Write a JavaScript program to remove items from a dropdown list Sample HTML file : Remove items…
A: program to remove items from a dropdown list:-
Q: Create a CSV file named Services.csv that contains all of the services running on the local…
A: Create a CSV file named Services.csv that contains all of the services running on the local…
Q: Suppose you have assigned a reference to a web page element to the variable cupcake. You have also…
A: In this question we have to select a correct option for JavaScript drag and drop question. Let's…
Q: ent listener to the button with an id of "button1". Listen for the click event. The button should…
A: It is defined as a Hypertext Markup Language is the code that is used to structure a web page and…
Q: Create an HTML that displays the menu items from the XML file. Fruit Bowl$10.90 Caeser…
A: XML: Extensible Markup Language is a markup language and file format for storing, transmitting, and…
Q: following statements is true?
A: HTML5 is a markup language utilized for organizing and introducing content on the World Wide Web. It…
Q: Create a simple Login page with User ID and Password fields () and a login button. Create a…
A: 1. The user id or password is empty is checked. 2. Also I have checked if the username and password…
Q: There are times as a web developer when you need to interact with different data types and file…
A: <!DOCTYPE html><html><head><style>table, th, td { border: 1px solid…
Q: 9- Fully explain the following code. what is the output of the following code (draw a picture to…
A: Given code: <IDOCTYPE html><html><head><style>descendants {display:…
Q: 5- Complete the following javascript function to display the style property of the document using…
A: In this problem, we need to write the script logic into the blank part of the code that is provided…
Assume your html file contains the following subset of code and already has a link to a javascript file:
<p>
<label for="comments"> Enter Comments: </label>
<input type="text" name= "comments" id="comments">
</p>
Create a function that will pop-up an alert message when the user enters a comment. Use blur event handler and name your function thankYou(). The alert should contain he message: "Thank you for your comments".
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Save this file as button.html▪ Use a Javascript Function name myFunction() and the Javascript document.write() method.▪ Write “x = 5”▪ Write “y = 20”▪ Write “Sum of x + y = 25”▪ Your JavaScript <script> should be in the <head> of the HTML document.▪ The <body> of the html should have a button. Clicking the button should execute myFunction()and display the above output.You will write an html web page called editItem.html (or editItem.py), which links to an external Javascript file named ActionOnItem.js. The contents of editItem.html (or editItem.py) should include dropdownlist1, dropdownlist2 and a button. First Add items to the dropdown list using HTML code. Secondly, click the button MoveHere. You can add other form elements if you think are needed to complete this program with more relevant information. then you will write a .js file named ActionOnItem.js. In ActionOnItem.js file, you should write a function called moveItem( ) which receive itemName parameter and remove that item from dropdownlist1 and add that item to dropdownlist2.HTML/JAVASCRIPT Take the attached application and modify the second function so that if the user enters ANY name , for example Lawrence Michael Wolk into the input box next to the second function, the span output will be L.Michael.W. So if the name were instead Michael William Jackson, the output will be M.Wiiliam.J. (See output png attachments) CISC_2350_CH_8_pp300_converter_asplithw.html <html> <head> <script src="split.js" defer></script> </head> <body> <h1>Name Converter</h1> <p>Type your name:</p> <div> <input id="name" type="text" size="24" /> </br> <span id ="span1">second output goes here</span></br> <button id="but0">Convert to last, First</button> </br></br> <button id="buta"> Convert From Name MI. Lname to FI.MI.LI.</button></br> <input id ="name1" type ="text" size ="24"/> <span id= "span2">Third output goes here</span>…
- Create a page that will allow users to enter the total amount for a bill, the number of people splitting the bill, and the tip percentage that should be used. All of these values can be entered using text fields, but you may use a drop-down menu or radio buttons to allow the user to select the tip amount that they want to use. When the user clicks a button to calculate the amount it should call a function in an associated JavaScript file that will perform the calcuation. This function should have four parameters, the first which is the amount of the bill, the second of which is the tax rate, the third of which is the number of people splitting the bill, and the last of which is the desired tip rate. The function should calculate the total amount due including tax and split it evenly amongst everyone. The tip should be calculated without tax. The function should create and return a String that looks similar to the following: "The bill of $100.00 with 8% tax comes to a total of…10. Create an application which will allow the user to type some text into a text box, and constantly display the number of words and the number of alphabetic letters that has been typed so far. By using HTML (the source code and the result of the program are recommended)Given the html codes below: <body> Name: <input id ="txtName" type ="text//><br/> NIC: <input id = "txtNIC" type = "text"/><br/> <button id =" btnDisplay" onclick = " validateNIC()"> submit </button> </body> Write a function validateNIC() which checks if the NIC fields is not blank and that the length of the NIC is 14. Appropriate messages should be displayed if any of the above validtions fails
- In a HTML5 document, code the followings: • Using an onload event, trigger a pop-up window showing the message «This was triggered by an event!» when the document has been loaded. • Create a button and, using an onclick event, trigger a pop-up window showing the message « Wow! This works! ». • Insert an image and then use an onmouseover event to trigger a pop-up window showing the message «This is a rollover ». 2.)Create a program that will display a message adapted to the user input data based on its age range: Age range Comment example 1 to 17 You're not major yet. 18 to 49 You are major, but not senior yet.2 50 to 64 You are senior, but not retired yet. Program's flow: • User loads the pages • User is asked to supply its age • The proper comment is displayedAssume you have the following html code: <html><head> <style> /* Your code goes here */ </style> </head><body><div class="container"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p></div></body></html> Add the following internal CSS styling rules to the code; you may use CSS class selectors as needed: For the div The width is 500px. Set the background color to green and the border should be solid yellow color with 5px thickness. The margin distance from the top is 20px. For the paragraph “p” Set the background color to red, text color to white. The padding for all the directions should be 50px.Write a program in html Create a closure function called createAccumulator(value) that will increase a value by 10 each time and multiply by 2
- use HTML and Javascript Give two different files of HTML and Javascript Display a random quote when the page loads. Use a JSON file that contains 10 different famous quotes and their author that you would use to select the random quote.in javascript Create a function that will load a new image from the website https://cataas.com/cat every 10 seconds, and will stop this interval when the SPACEBAR is pressed.JAVASCRIPT: Part I– For you “Login.html” page, we are going to do some Javascript validating. First validate that the user typed in something in both textboxes. If either textbox is empty, pop-up a message that tells the user that they must enter a Valid Customer ID and Password. Part II– Again for you “Login.html” page, validate that the Customer ID is a Number, not a string. Also all Customer IDs are numbers between 3000 and 3999. All 4 digit numbers. Validate that all Customer IDs are numbers between 3000 and 3999.