codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Put confirm do you really on button instead of link  tracing at 21:19 on Tuesday, September 09, 2008
 

I have to add r u sure to delete button

got it to work on a link

but I want my button back, cant see how to get the code in the button

this is in between the end head and begin body

<script>
<!-- JavaScript Start -
function confirmation(){
var answer=confirm("Are you sure?");

if (answer==false)
{ return false;}
else return true;}
JavaScript End -->
</script>

and in the body is this link that does what I want, how do I make this link a button again ?

<a href="main.asp?action=reqdelete&id=<%=objRS2("ID_tblREQUEST")%>" onclick="return confirmation()">Remove</a>








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Parsing, fish up all between <td> and </td> ... without possibility of confusion.
•  Technical problem with Visual Studio C++
•  Put confirm do you really on button instead of link
•  How Can i Create a list[Validation] in embedded Excel Object in JavaScript ?
•  Re: searching for gd::graph guide
•  Re: hash within hash
•  Re: Passing value through function then print... GONE WRONG!!
•  Need help to modify a formula for calculating in Javascript ?
•  form/cgi help


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008