getting the path of a javascript file

Posted by buggy1985 on Stack Overflow See other posts from Stack Overflow or by buggy1985
Published on 2010-04-14T15:21:07Z Indexed on 2010/04/14 17:13 UTC
Read the original article Hit count: 188

Filed under:
|

Hi,

In a javascript file (e.g. script.js) I need a variable that contains the absolute path to this file.

How can I do this dynamically?

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about absolute-path