Here is my code, I want add.php to open in the current tab not open a new window all together.
<input type="submit" class="btn" value="Add Record" onclick="addrecord()">
<script>
function addrecord() {
window.open("add.php", "Add Record", "_self");
}
</script>