Can an alert button open up a URL?

You can achieve this uisng two ways

  1. Add a form containing your own buttons to the alert.
  2. Open the link using window.open
if alert('Something',buttons=['Open Link'])=='Open Link':
    from anvil.js import window
    window.open("my_url",'_blank')
3 Likes