[pmwiki-users] Re: newwin with defined size

Christian Schlatter ch at schlatter.net
Mon Jul 4 06:40:21 CDT 2005


Albi Rebmann wrote:
> Christian Schlatter schrieb:
> 
>>> does anybody know how I can set size of new win when I open a link?
>>> Thanks for any help.
>>
>>
>>
>> I think you can only do this with javascript's window.open method 
>> (http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html ).
>>
>> Example:
>> http://www.w3schools.com/js/tryit.asp?filename=tryjs_openallwindow
> 
> 
> Does it pmwiki in a different way?
> If not, it would be just necessary to add some parameter I hope.

A link to open a new window with defined size would look like:

<a href="/pmwiki/Some/Page"
  onclick="window.open(this.href, 'WindowTitle', 'width=640,height=480');
  return false">LinkText</a>

You could apply this pattern to e.g. $UrlLink

-ChristianS





More information about the pmwiki-users mailing list