Question: Can someone help me with this code please? I understand for running page, we need to use window.location.href I believe but I am having trouble

Can someone help me with this code please? I understand for running page, we need to use window.location.href I believe but I am having trouble writing out the java code for it. Much appreciate all the help
Lab 4 Write a JavaScript code to show the current absolute path of the running page as exactly below format on a browser. You need also to add a paragraph about the purpose of this code. The Current Absolute Path of This Page: http://yourloginname.heyuhnem.com/LABS/lab5/lab5.html
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
