How to get click action

Hi community,
I have this code below,

import streamlit as st
st.write(“Check 8”, unsafe_allow_html=True)

I want to get action when i click on 8 in web interface, how to do that?
Thank you,
TraDinh

1 Like

Hi @Tra_Nguy_n_Dinh

If you’d like to make the number 8 a link, you can do

import streamlit as st

st.write("Check [8](https://google.com)")

Hope this helps!

1 Like

I want sth like when i click on 8, python code know that action and do another task (ex: print out debug line,…) after that.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.