I'm trying to get the filename of the current page. I've tried using document.location.href and it works only part of the time. It seems that the object only contains what is in the address bar. For instance and both display index.html, but only the second will supply document.location.href the actual path AND filename.
Is there a way to get the current file name whether it's in the address bar or not?
Is there a way to get the current file name whether it's in the address bar or not?