Log out config
2 posters
Page 1 of 1
Log out config
Hello
I would like to know dose here is something wrong why it dont work it is my javascript
it should make that if i click log out in my forum it should make popup that asks me are u sure you want to log out
but i added that javascrpit and didnt work maybe it need css or something with it?
I would like to know dose here is something wrong why it dont work it is my javascript
it should make that if i click log out in my forum it should make popup that asks me are u sure you want to log out
but i added that javascrpit and didnt work maybe it need css or something with it?
- Code:
$(document).ready(function() {
var x = document.getElementById('logout');
$(x).click(function(cLogout) {
var y = confirm("Are you sure you want to logout?");
if (y == true) {
return true;
} else { cLogout.preventDefault(); }
});
});
Last edited by mmägi on Wed 26 Nov - 23:05; edited 1 time in total
Re: Log out config
Where did you get the code from?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Log out config
Check to make sure that you copied the code correctly from your old forum.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Log out config
Is this solved?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Log out config
Garbaged
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» someone help me to config this
» Borderline Config?
» Registration settings/config? help
» about change pass config
» Error: Could not query config portal information
» Borderline Config?
» Registration settings/config? help
» about change pass config
» Error: Could not query config portal information
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum