Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Redirect by clicking a button

Featured Lock Resolved Task
How to make a redirect by clicking a button id=btn-..........?

7 Answers

KirillKozin

More than a month ago #Permalink
Understood, maybe someone will be useful!

var btn = document.getElementById('btn-..........');
btn.addEventListener('click', function() {
document.location.href = 'https://...................';
});

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
in general all buttons have URL field.
So it's depends on you where you want to redirect user.
---
URL - can be external link or Internal link to #here - Row ID name.

KirillKozin

More than a month ago #Permalink

$('btn-..................').click(function(){
window.location.href='https://............';
});


I try to put </body>, but it does not work!

KirillKozin

More than a month ago #Permalink
Do not forget to put
script........./script

Paul Frankowski - Staff

More than a month ago #Permalink
JS & PHP code customization is beyond support here.
So please do not put such a questions. Thanks.

KirillKozin

More than a month ago #Permalink
ok, sorry;)


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 117
Toufiq

Toufiq

Total Accepted Answers: 82
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 71
Ofi Khan

Ofi Khan

Total Accepted Answers: 43
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 37

121

Templates

315335

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us