Question: Write html and JavaScript to do the following AVASCRIPTARRAYS EXERCISE A URL in web is made of many components as shown in the picture below:
AVASCRIPTARRAYS EXERCISE A URL in web is made of many components as shown in the picture below: File Name http://www.kfu.edu.sa/documents/arew.php Protocol Server Name Depth of the File Extension In this exercise, complete the javascript function called "decode url" below where the input url is provided in a variable called "url" (Note: the variable can be changed so do not put the values manually) The output of the funconsook like this (use routput Protocol: HTTP Server Name: www.kfu.edu.sa Depth of the File: 2 Name of the File: new Extension of the File: php Note: Depth of the file is the number of folders in the path after the server name and before the filename
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
