I have a script that calls a page which then redirects back to the original page. The problem is that when the script is called it opens a new page. Here's the code:
<script LANGUAGE="javascript">
function DoDeleteHead(){
var submitOK = confirm("Are you sure you want to delete this record?")
if (submitOK == true){
open(window.location="clear_db.asp");
}
}
</script>
<a href="javascript
oDeleteHead();">X</a>
I don't want a new page opened, I want everthing to take place it the same browser window.
<script LANGUAGE="javascript">
function DoDeleteHead(){
var submitOK = confirm("Are you sure you want to delete this record?")
if (submitOK == true){
open(window.location="clear_db.asp");
}
}
</script>
<a href="javascript
I don't want a new page opened, I want everthing to take place it the same browser window.