I am new to the forums, and although I have done web design in HTML, Java Script and CGI it has been awhile, about 20 years in fact. I have done very little with CSS. Please bear with me as I will likely have several questions. I do have extensive experience with Visual Basic, I have had Java and C# classes but that is where it ended. So I at least have the foundations for scripting and programming
I am working on creating a 404 file. I just about have it the way I want it, with the exception of one thing. I would like to retrieve the address in the address bar and display it on the 404 file. Kind of like:
So fair I currently have :
Javascript
HTML
However it is not working. Where have I gone wrong
I am working on creating a 404 file. I just about have it the way I want it, with the exception of one thing. I would like to retrieve the address in the address bar and display it on the 404 file. Kind of like:
Sorry the page you requested, wepage.html is not available.
So fair I currently have :
Javascript
Code:
<Script type="text/javascript">
document.getElementById("file").innerHTML = window.location.pathname;
</script>
HTML
Code:
<span id="file"></span>
However it is not working. Where have I gone wrong