javascript wontJavaScript won't understand sforcethe Sforce function.. better youYou can use this to navigate to another window:
window.open(window.location.origin+'/'+"/one/one.app#/sObject/'+caseId+'/view'",'_parent');
to navigate to other window.. youYou can use '_blank'
to open it in new tab also and keep the parent window as it is.