Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7920035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:04:15+00:00 2026-06-03T16:04:15+00:00

<input type=button value=Delete onclick=show_confirm(http://mydomain.com/delete.php)> I have this button and this JavaScript function, but they

  • 0
<input type="button" value="Delete" onclick=show_confirm(http://mydomain.com/delete.php)>

I have this button and this JavaScript function, but they don’t work.
When I click the button, nothing happens.
What is wrong with my code?

function show_confirm(url){
   var r = confirm("Do you want to delete this?");
   if (r == true){
       window.navigate(url);
      }
   else{
       alert("You pressed Cancel.");
       }
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:04:16+00:00Added an answer on June 3, 2026 at 4:04 pm
    <input type="button" value="Delete" onclick="show_confirm('http://mydomain.com/delete.php')">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<input type=button value=Back onClick=window.navigate('http://www.google.com')> This works on IE8, but not firefox or opera. Anyone
I have this code: <INPUT type=button value=Pre-Requisites onClick=window.open('pre_requisites.php','pre-requisites','width=670px,height=470px,left=0px,top=100px,screenX=0,screenY=100')> It is use to open a
In my HTML I have something like this <input type=button value=Delete onclick=delete(this);/> and in
I'm passing PHP variable value like this: <input type=button name=delete value=Remove onclick=del(<?echo $arr1[0]?>);/> del()
this is my botton: <form> <input type=hidden id=id value='.$row['order_id'].'> <input type=button value=Delete onclick=ajaxFunction()> </form>
I have an input type=button <input type=button name=DeleteJob runat=server value=Löschen onclick=DeleteJob() /> and JavaScript
<td><input type=button value=remove onClick=removeBox(this.parentNode.parentNode.rowIndex); /></td> function removeBox(i) { document.getElementById(firstTbl).deleteRow(i); } my this code is
I need to do something like this: <input type=button value=click id=mybtn onclick=myfunction('/myController/myAction', 'myfuncionOnOK('/myController2/myAction2', 'myParameter2');',
I want to submit a form like this: <input type=button onclick=$('#form1').submit(); value=Create /> but
I used this code to print the current page: <form> <input type=button value=Print onClick=window.print();

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.