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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pls help about opening window

Status
Not open for further replies.

miaowa

IS-IT--Management
Joined
Jun 1, 2001
Messages
1
Location
CN
Dear all

if i have the following code and i want to open a window of 125 width and 125 height, how can i achieve this? thanks

<a onmouseout=noscroll() target=_new
href=&quot;#&quot;>
 
I would do something like this:

Put this between your <head> tags:
s-)
<script language=javascript type=&quot;text/javascript&quot;>

<!-- Hide script from old browsers
function newWindow(portgif) {
portWindow = window.open(portgif, 'portWin', 'width=570,height=505,scrollbars=yes, right='+rightPos+' ,top=0')
portWindow.focus()
}

rightPos=0
if (screen) {
rightPos=screen.width-225
}
//End hiding script fom old browsers -->
</script>

s-)
Use this as your link:

<a href=&quot;javascript:newWindow ('limo.htm')&quot;>Your Link Here</a>

s-)
On the first portion, change the width & Height to meet your needs. You can add or delete statusbar, addressbar, scrollbars to give the new window the look you want.

Hope this is helpful!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top