xram
New Member
M.O.D: Master Of Disaster
Posts: 18
inherit
35086
0
Oct 5, 2006 3:26:14 GMT -8
xram
M.O.D: Master Of Disaster
18
December 2004
xram
|
Post by xram on Sept 29, 2005 7:59:29 GMT -8
Forum URL: hennekes.proboards26.comI need a coding for a confirmation if youre click on logout.. it has to ask: are you sure you wanna logout? (maybe the backgroud is getting a bit grey.. as logging out on windows) and the options are: yes (logout real) and No or Cancel (return to home) I tried to make this, but it wasn't succesfull, so is there anybody who can make this for me? Tnx El Tony
|
|
inherit
19407
0
May 18, 2012 12:51:18 GMT -8
Jesusfreak
Faith is the Evidence of Things Unseen
1,942
January 2004
nilknarf88
|
Post by Jesusfreak on Sept 29, 2005 8:06:40 GMT -8
<script>
var menu = document.getElementsByTagName("a"); for(i=0;i<menu.length;i++){ if(menu[i].href.indexOf("action=logout") != -1){menu[i].href="javascript:co()";}} function co(){var q = confirm("Clicking this button will time out your session, do you want to proceed?"); if (q == true){window.location="index.cgi?action=logout";}} </script>
Global Headers
|
|
xram
New Member
M.O.D: Master Of Disaster
Posts: 18
inherit
35086
0
Oct 5, 2006 3:26:14 GMT -8
xram
M.O.D: Master Of Disaster
18
December 2004
xram
|
Post by xram on Sept 29, 2005 8:07:30 GMT -8
tnk you very much!
|
|