如何从window.location.pathname获取文件名

How do I get the filename from window.location.pathname

本文关键字:pathname 获取 文件名 location window      更新时间:2023-09-26

如何使用javascript使用:window.location.pathname 获取文件名

window.location.pathname = G:'AS'Asf'ASF'RSSIMS'welcome.hta

id类似var x=welcome.hta

如何获取文件名?

感谢

您不能-这是一个不向客户端公开的服务器属性。