php - do not reuse tab in case target is _BLANK -


i have 2 php pages: 1.home page 2.view page

on home page have thumbnails of featuring items , each item has link view page, differentiated parameter. i.e.: viewpage.php?id=1, viewpage.php?id=2, etc...

i use because need view pages open in new tabs or new browsers (doesn't matter which)

as click on first item, view page opens in new tab; however, click on second item replaces tab of first item.

how can force home page open each view page in new separate tab?

i'm not asking, try javascript function instead.

<script type="text/javascript">     $(document).ready(function(){         $('a[rel="_blank"]').click(function(){             window.open($(this).attr('href'));             return false;         });     }); </script> 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -