jquery - How to get the current file path in javascript -
can full path of html page through javascript eg index page @
d:/somefolder/anotherfolder/index.html so can path
thanks
you can access current file path relative host url, cannot access folder path of file.
this restricted in javascript due security reasons. if allowed, malicious scripts read server's internal folder structures, bad.
Comments
Post a Comment