I got some php code like this to redirect my page inside one php function:
<script>
function a(){
<?php
header('Location: http://www.localhost.com/');
?>
}
</script>
I will like to know if there is any way to stop this to redirect inmediatly when i load my page, and if it is possible to do it with some Javascript or JQuery, cause I tried it with JS and I couldn't find a way to do it .