Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need code to open a new separate browser window

Status
Not open for further replies.

ProgrammerKC

Programmer
Oct 12, 2000
7
US
I need the code to open a new browser window of a specific size and at a specific
place on the screen.
The code I am using now will open a new window but I am not sure of the specifics of how to size the new window and have it appear at the top of the screen.

Here is the code I am using now:
<a href=&quot;/newpage.html#item&quot; target=&quot;new&quot;; return false'>Item</a>

Thanks!
 
<script>
function newWin(url)
{
window.open(url, 'thisthing', 'height=200, width=200');
}
</script>

<a href=&quot;#&quot; onclick=&quot;newWin('

this will open a new window, a specific height and width, i'm not sure about position, though.. i think there is a thread either here or in the javascript forum that has new window positioning.
 
you have to use the window.open(...) function
there have been plenty of threads those last days about this (in this forum but also in javascript forum), you should perform a search on &quot;window.open&quot; or something like that, as i'm too lazy to copy paste what has already been said :-/



 
luciddream IS a nice and not lazy guy !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top