Javascript Edit object in toolbar component

Is any possible method to access object in toolbar from javascript page? for example to enable or disable refresh button. Thank you.