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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -