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

using a behaviour to open window full screen 1

Status
Not open for further replies.

simonWMC

Programmer
Dec 2, 2002
180
GB
hi

i have attached a behavior to an onclick event on my page.

the code is this

[code}
<td width="51%" height="26"> <div align="center" onClick="MM_openBrWindow('index.htm','RoadCraft','scrollbars=yes,resizable=yes,width=1024,height=768')"><font color="#0000FF" size="2" face="Arial, Helvetica, sans-serif" onclick="MM_openBrWindow('index.htm','RoadCraft','status=yes,scrollbars=yes,resizable=yes,width=1024,height=768')"><a href="test_rules.htm">I
Agree &amp; Understand</a></font></div></td>
[/code]

trouble is it opens off centre on the screen. Is there some way I can either make it full screen or set it to the centre ?

thanks guys
 
resizable=yes,width=100%,height=100%,
using height=100% is not considered as w3c standard....but

or
hard-code:
width=1024,height=768, top=x, left=x,

dynamic-code:
to position your pop-up window
All the best!

> need more info?
:: don't click HERE ::
 
thankyou.

i went for hard code top=0 ect, works a treat.

however, with 100% it makes a tiny little screen ? Wierd

thanks again !
 
LOL at 100%
well as long as you got one of the options to work and ur happy..... :)
All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top