Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button link to any webpage #43

Open
xpcrts opened this issue Sep 3, 2019 · 1 comment
Open

Button link to any webpage #43

xpcrts opened this issue Sep 3, 2019 · 1 comment

Comments

@xpcrts
Copy link

xpcrts commented Sep 3, 2019

How to make button to link to any webpages or urls?

@potato17
Copy link

try assigning the to normal button as in js then u might want to use document.queryselector() to convert it by letting it be button then use addEventListner() for redirecting to various web pages . It is there in the code yet they replace it with toast.show() . Hope this help :)

<script type="text/javascript"> let button= document.querySelector('a-button'); button.addEventListener('click',()=> { window.location.replace('index.html')}) </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants