Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
patrocine

Redirect to a new tab with javascript

Recommended Posts

I need when I redirect it to open in a new tab in the browser with _blank but I haven't found how to implement it in the code

 

  <script type="text/javascript">

       var pagina = 'categories.php<? echo '?cPath=' . $categories['parent_id'] .'&pID=' . $products_id.'&action=new_product';  ?>';
    var segundos = 0;

    function redireccion() {

        document.location.href=pagina;

    }

    setTimeout("redireccion()",segundos);

     </script>
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×