relative path to absolute path js code example Example 1: relative path vs absolute path javascript ../views/login.html Example 2: relative path vs absolute path javascript /index.html