Skip to content

Redirect to a different site with a button click #352

Answered by 18870
rabbipigeon asked this question in Q&A
Discussion options

You must be logged in to vote

#270

put_button("github", onclick=lambda: run_js("location.href='https://github.com/'"))
put_button("github", onclick=lambda: run_js("window.open('https://github.com/')"))

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rabbipigeon
Comment options

Answer selected by helincao
Comment options

You must be logged in to vote
1 reply
@wang0618
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants