#Chrome Default behavior

28 messages · Page 1 of 1 (latest)

thorny raptor
#

Is it possible to override chrome browser behavior?
Like i'm created a button that will help us to print a invoice. however, when a user click print button then it's shows looks like as screenshot popup to set print setting.

So waht I want to know?
mainly I want to know about that is possible to skip only this popup/modal behavior? like it don't want to see any modal or default popup I want to direct print.

exotic crane
#

not really a TS question

#

but overall, I don't think it's possible

#

and the docs clearly states it only opens the print dialog

#

not sure anyone would want the browser to print stuff programatically

#

even after a trusted user input

#

@thorny raptor

thorny raptor
#

is it possible to finished with any browser api??

#

I mean is it possible to do with any chrome extension??

exotic crane
#

but overall, I don't think it's possible
there is only window.print available in JS to print stuff

#

the fact it is browser extension doesn't change anything, you still have access to the same JS API

#

and if the JS API doesn't allow it, then it's not possible

thorny raptor
#

seems looks like we can do someonething only chromos not mac or windows right?

exotic crane
#

only works on ChromeOS

#

note it's meant to be used for ChomeOS (web)apps, not regular websites

thorny raptor
#

what do you mean by not regular websites??

#

did you mean

  • it only work on browser not any application
#

im i right?

exotic crane
#

ChomeOS is basically Google Chrome, but meant as an operating system for cheap/school laptops
there are no native apps, just the "browser" that you can use for about anything

#

so if you need a word processor program, the default is Google Docs

#

and you might want to print stuff in Google Docs, so they needed an API for that

#

but they made those apps (Google Suite) tightly integrated to ChromeOS

#

and that's why there are some features that are only available to those webapp made for/with ChromeOS in mind

exotic crane
#

tldr. that API is for Google Docs on ChromeOS, and nothing else

thorny raptor
#

yeah,, maybe i got your explain