Answer
You can use clickEvent
with open_url
:
/give @s minecraft:written_book{pages:["[\"\",{\"text\":\"Arqade\",\"color\":\"gray\",\"underlined\":true,\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://gaming.stackexchange.com/\"}}]"],title:"foo",author:"bar"}
Attribution
Source : Link , Question Author : 65_7a , Answer Author : L. F.