Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable new windows button #1434

Open
memad-oneidentity opened this issue Feb 8, 2024 · 2 comments
Open

How to disable new windows button #1434

memad-oneidentity opened this issue Feb 8, 2024 · 2 comments

Comments

@memad-oneidentity
Copy link

Is there and way to prevent users from opening new windows and new tabs?

i'm using below code:
// Setting up browser options
allocOpts := append(
chromedp.DefaultExecAllocatorOptions[:],
chromedp.Flag("headless", false),
chromedp.Flag("enable-automation", false),
chromedp.Flag("hide-scrollbars", false),
chromedp.Flag("mute-audio", false),
chromedp.Flag("disable-infobars", true),
chromedp.Flag("window-size", "1280,800"),
)
how can i edit browser option to disable access to new tabs / windows / History / Downloads

thanks,

@imblowsnow
Copy link

chromedp.Flag("app", "http://www.google.com"),

@memad-oneidentity
Copy link
Author

Thanks, it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants