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