Javascript, go to url without knowing what page level I am at -
in javascript, how go specific url without knowing am?
for example, might at
www.mysite.com/level1/level2 www.mysite.com/level1 i want go to:
www.mysite.com/go_here i tried:
window.location.href = document.domain + "/go_here/"; but tags domain , go_here onto previous url:
www.mysite.com/level1/www.mysite.com/go_here normally, i'd use ../ don't know how many levels go back.
try / @ beginning , without document.domain:
window.location.href = "/go_here"
Comments
Post a Comment