function Error404() { return ( <Wrapper> <ErrorHeading>404</ErrorHeading> <ErrorDescription> We can’t seem to find this page. Please enjoy this comic before{' '} <ErrorLink onClick={() => window.history.back()}>going back</ErrorLink>{' '} or <ErrorLink href="https://resumake.io">going home</ErrorLink>. </ErrorDescription> <ComicContainer> <ComicImage src={comic} alt="Resume Comic" /> <ComicCite>Credit: Bob Eckstein (bobeckstein.com)</ComicCite> </ComicContainer> <ButtonContainer> <Button onClick={() => window.history.back()}>Go Back</Button> <LinkButton href="https://resumake.io">Go Home</LinkButton> </ButtonContainer> </Wrapper> ) }
ev.target.tagName !== 'TEXTAREA' ) { window.history.back(); } else if ( ev.keyCode === 73 && ev.shiftKey === true && ev.ctrlKey === true ) { electron.ipcRenderer.send( 'toggle-dev-tools' );
const onBack = (e) => { if(e.ctrlKey || e.metaKey || e.altKey || e.shiftKey || e.button !== 0) return; e.preventDefault(); e.stopPropagation(); history.back(); }
Template.topicViewOne.events({ 'click #btnGoBack': function () { // tell previous tabbed view to restore the last tab Session.set('restoreTabAfterBackButton', true); window.history.back(); } });
handleKeyDown(event) { const code = event.keyCode; if (code == 37 || code == 39) // left or right arrow keys event.preventDefault(); if (code == 38) // up arrow key history.back(); if (code == 40) // down arrow key history.forward(); }
back () { if (IS_BROWSER) window.history.back() }
// 提交商品 submit(){ if(!this.edit.title){ Layer.alert({width:300,height:150,type:"msg",title:"商品标题必填!"}); return false; } util.ajax({ url:config.baseApi+'api/back/goods/editGoods', data:this.edit, success:data=>{ Layer.miss({width:250,height:90,title:"操作成功!",time:2000}) setTimeout(()=>{ history.back(); },1000) } }) }
this.pageConnectModal.on('cancel', () => { typeof config.promise.cancel === 'function' && config.promise.cancel(); deferred.reject(); history.back(); });
(function($) { 'use strict'; $(function() { $('.cancel-link').click(function(e) { e.preventDefault(); window.history.back(); }); }); })(django.jQuery);
click() { const backRoute = this.shouldShowBackBtn(this.props.route); if (backRoute) { window.history.back(); // action.onNext({ name: ACTIONS.BACK_BUTTON, data: backRoute }); } else { this.toggle.click(); } }
//determine if we're heading forward or backward and continue accordingly past //the current dialog urlHistory.directHashChange({ currentUrl: to, isBack: function() { window.history.back(); }, isForward: function() { window.history.forward(); } });
this.pageConnectModal.on('back', () => { history.back(); deferred.reject(); });
goBack(savedHero: Hero = null){ this.close.emit(savedHero); if(this.navigated){ window.history.back(); } }
function Error404() { return ( <Wrapper> <ErrorHeading>404</ErrorHeading> <ErrorDescription> We can’t seem to find this page. Please enjoy this comic before{' '} <ErrorLink onClick={() => window.history.back()}>going back</ErrorLink>{' '} or <ErrorLink href="https://resumake.io">going home</ErrorLink>. </ErrorDescription> <ComicContainer> <ComicImage src={comic} alt="Resume Comic" /> <ComicCite>Credit: Bob Eckstein (bobeckstein.com)</ComicCite> </ComicContainer> <ButtonContainer> <Button onClick={() => window.history.back()}>Go Back</Button> <LinkButton href="https://resumake.io">Go Home</LinkButton> </ButtonContainer> </Wrapper> ) }
click() { const backRoute = this.shouldShowBackBtn(this.props.route); if (backRoute) { window.history.back(); // action.onNext({ name: ACTIONS.BACK_BUTTON, data: backRoute }); } else { this.toggle.click(); } }