Question: E. Practice #4 Create a new HTHL page (Practice4 html) from your template Within your HTML page create a form that supports the following data
E. Practice #4 Create a new HTHL page (Practice4 html) from your template Within your HTML page create a form that supports the following data entry: First Name: Last Name: Address: City: Province: text box text box text box text box text box Add a button that displays Add Account Add a div outputStuff) that can be used for display purposes Create the following arrays: months (short form of all months- Jan, Feb, ...) days (days of the week Sun, Mon,...) Add a JavaScript constructor function called AccountType which can be used to create account objects. Your constructor function will need to handle 5 parameters that wil1 map to the 5 text boxes. In addition, the object constructor should ereate a datecreated property based on the current date Create an event handler function for the Add Account button called addAccount This function should do the following things create a new account object 2. include a formatted dateCreated property (DDD MMM dd, YYY Example Thu Nov 30, 2017) 3. take the object and output all 6 properties to the outputStuff div var myDate new Date(O var year myDate.getFullYear) var month myDate.getMonth)i var dayofWeek myDate.getDayO var dayOfMonth myDate.getDate() var hourofDay myDate.getHoursO Reflect in ePortfolio
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
