HTML Game: External Links?

hey all-

i’m working on an html game that has a mechanic that takes you to an external link when using an item. also have a conversation tree that deep links to open another app while on your phone.

i was using visustellas core engine with that plug-in command and it worked great in testing on pc.

but when deploying for web, it doesn’t work in browser. ideally it’d simply open a new tab with the URL via a plug-in command.
how would i resolve or is there another plug-in that’s compatible with web? also hoping it’d work on mobile.

slightly unrelated q, but also, my menu bar appears at the top on web desktop, but on my phone, it appears at the bottom. any idea why these would be different? ideally i’d want a joystick overlay for mobile but not sure if there’s any tutorials for mobile specific UI for web
The question you should ask first before spending time on that is if the problem really comes from the plugin.

There are a lot of browser extensions like ad-aware and similar adblockers that intentionally force the browser to not open secondary windows and tabs.

you should check if it is one of those first, because in that case the solution is to whitelist your game adress in that browser extension.
No need for a plugin for this, as the functionality is already provided in standard JavaScript:
JavaScript:
window.open(URL, '_blank');

URL should be a string, so for example:
JavaScript:
window.open('https://en.another-eden.jp/', '_blank');

However, as Andar said, adblockers and certain browser settings can interfere with it. Unfortunately, there's not a good way around that, and you'll just have to add a disclaimer somewhere to advise your players to either disable their adblocker or whitelist your site.

Original thread: https://forums.rpgmakerweb.com/threads/html-game-external-links.153291/