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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -