WebWeWant / webwewant.fyi

If you build websites, you inevitably run into problems. Maybe there’s no way to achieve an aspect of your design using CSS. Or maybe there’s a device feature you really wish you could tap into using JavaScript. Or perhaps the in-browser DevTools don’t give you a key insight you need to do your job. We want to hear about it!
https://webwewant.fyi
MIT License
76 stars 23 forks source link

I want a javascript API to set a event when the browser is going to open a new page. #499

Open WebWeWantBot opened 2 years ago

WebWeWantBot commented 2 years ago

title: I want a javascript API to set a event when the browser is going to open a new page. date: 2021-10-09T14:41:09.660Z submitter: YanSH number: 6161aa052a7f784ac3c8e385 tags: [ ] discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/ status: [ discussing || in-progress || complete ] related:

When publishing some user-generated contents written in HTML, I can hardly prevent them from opening a new page, so I want an API to set an event when the browser is going to open a new page, then I can control these contents better.


If posted, this will appear at https://webwewant.fyi/wants/6161aa052a7f784ac3c8e385/