(I'm not an application programmer, so take this with a grain of salt) A web application can not open a program on a users desktop, unless it is using a protocol/URI (i.e. Outlook's mailto: protocol, BitTorrent's magnet: protocol). Minecraft doesn't have a protocol like that, and Java can't do that either.
To add on to what StealthBravo explained above, it would be incredibly concerning if you were actually able to do what you wanted. The security risks associated with actually being able to do that far outweigh the benefit of skipping the two step (Ctrl-C Ctrl-V) process in copying the server IP over to Minecraft.
It would be technically possible with Java using JNI. Wouldn't it?
I myself have never used JNI and once tried to make my own JNI library... It didn't work.
(I'm not an application programmer, so take this with a grain of salt) A web application can not open a program on a users desktop, unless it is using a protocol/URI (i.e. Outlook's mailto: protocol, BitTorrent's magnet: protocol). Minecraft doesn't have a protocol like that, and Java can't do that either.
K95 RGB / Logitech G502 PS / Alienware AW3418DW / ViewSonic XG2703-GS / Sennheiser HD 598
I myself have never used JNI and once tried to make my own JNI library... It didn't work.
Well I just know
will open the game on Mobile and Windows 10 devices.
I'm also meeting the same question like you
I don't think that is possible with Minecraft Java Edition right now.