problem in setting path variable in .js file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SHHHH
    New Member
    • Apr 2007
    • 6

    problem in setting path variable in .js file

    when i wrote this code in master page:

    <script type ="text/javascript" >

    function fnevar()
    {
    var npath="<%=SITEP ATH%>";
    return(npath);
    alert(npath);
    }
    </script>

    here <%=SITEPATH%> should give a path i.e. c:\\inetpub\www root\Test but it gives c:inetpubwwwroo tTest
Working...