And please feel free to give comments on this tutorial. You can customize this code further as per your requirement. Thats all, this is how to redirect webpage after delay using JavaScript. function deleteRecord(id) // Get id of record. I'm trying to add edit and delete links on each row (as above) but just cant get it sorted. You may also like print webpage using javascript. I'm using this method as I'm using phonegap.I have display items and add items working but want to add in edit and delete functionality. Here 10 represents the sec it takes to redirect to another page and then create if() condition to check if count=0 redirect to same page we use blank in window.location you can use any page to redirect and then we decrement the count to -1 and when the count reaches to 0 it redirect the user to another page. In this step we create a button to call redirect() function and in redirect() function we create a Document.getElementById('countdown').innerHTML = "Redirect In "+count+" Seconds." Here we using 3 file for delete data from MySql database using Ajax.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |