in reply to [Re]confirm box
Also, I think you need the Javascript function to be called on the form like this:print qq|if (answer == false ){ \n|; print qq|document.write('You chose to Cancel. Closed window.');\n|; print qq|return false;\n|;
Note also the use of the quote operator qq|| so you don't need to escape the quote marks etc.print qq|<form name="form1" action="disable.cgi" method="post" onsubmi +t="return CheckForm_onclick()">|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Re]confirm box
by kbee (Initiate) on Dec 23, 2014 at 13:55 UTC | |
|
Re^2: [Re]confirm box
by Anonymous Monk on Dec 24, 2014 at 06:40 UTC | |
by Anonymous Monk on Dec 24, 2014 at 06:45 UTC | |
by Anonymous Monk on Dec 24, 2014 at 10:20 UTC | |
by Anonymous Monk on Dec 24, 2014 at 11:07 UTC |