Here is my script:
<script LANGUAGE="javascript">
function DoDeleteHead(){
var submitOK = confirm("Are you sure you want to clear the text file?")
if (submitOK == true){
open("clear_db.asp");
}
}
</script>
Here is the link that I click on to call this script:
<a href="javascript
oDeleteHead('');">Clear Text File</a>
When I click on the link I get the message box, when I click OK it opens a new window. I have a response.redirect in the clear_db.asp page that brings me back to the page I clicked the link on.
How do I keep it from opening a new page and stay on the same page.
<script LANGUAGE="javascript">
function DoDeleteHead(){
var submitOK = confirm("Are you sure you want to clear the text file?")
if (submitOK == true){
open("clear_db.asp");
}
}
</script>
Here is the link that I click on to call this script:
<a href="javascript
When I click on the link I get the message box, when I click OK it opens a new window. I have a response.redirect in the clear_db.asp page that brings me back to the page I clicked the link on.
How do I keep it from opening a new page and stay on the same page.