# Window.location / new window?

**URL:** <https://forum.kirupa.com/t/window-location-new-window/306687>\
**Category:** Uncategorized\
**Created:** [March 19, 2010, 10:36pm UTC](https://forum.kirupa.com/t/window-location-new-window/306687 "2010-03-19T22:36:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![registry](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@registry](https://forum.kirupa.com/u/registry)\
**Post date:** [March 19, 2010, 10:36pm UTC](https://forum.kirupa.com/t/window-location-new-window/306687/1 "2010-03-19T22:36:58Z")

</div>

Hello,

I have a php page where a list of items comes from a data base. Each item locates in a cell and onclick, related page loads (list.php). The problem is this page does not open in a new window. How should I modify the code? I tried replacing window.location with window.open command but it wont work.

echo “\<td width=230 style=“vertical-align:top” class=boxInactive onclick=“window.location='list.php?Id=” . $data[$i + ($j \* $rows)] .”’;return false;" ";

please help  
thanks
