Forum Moderators: open
pathArray = window.location.pathname.split ( '/');
//See if url ex. domain.com/path1/path2/index.htm has a third slash
if(pathArray[2]){
showslash ='../';
}
else {
showslash ='';
}
var h=""+showslash+"portal/chat/";
Whats wrong :)? I'm not so familiar with js