Windows sizing and position

  • tommya
  • Graduate
  • Graduate
  • tommya
  • Posts: 221
  • Loc: United Kingdom

Post 3+ Months Ago

Can anyone tell me exactly how I specify exact coordinates and window size when I want to open a link in a new window?

Im guessing this is javascript but dont know how to do it?

Cheers :roll:
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

As a pop up or just a normal browser window?
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

try this

Code: [ Select ]
<a href="javascript:newWin=void(window.open(YOURLINKCOMESHERE','newWin','scrollbars=1,width=350,height=350,top=60,left=60'))">LINKTEXT</a>


If you want you can have no scrollbars, show the toolbar etc etc.. If you need any help let me know.

Remember to put this in the body tag
[/code]
  • tommya
  • Graduate
  • Graduate
  • tommya
  • Posts: 221
  • Loc: United Kingdom

Post 3+ Months Ago

exactly what I wanted, works perfectly.
cheers mate

Tommy
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

no problem

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 61 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.