[pmwiki-users] Re: newwin with defined size

Patrick R. Michaud pmichaud at pobox.com
Tue Jul 5 09:12:02 CDT 2005


On Mon, Jul 04, 2005 at 10:19:14PM +0200, Albi Rebmann wrote:
> >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
> 
> Thnaks, but how can I do this exactly? I think with Markup, but do not 
> know how exactly.
> I think best idea would be if I can do something like this:
> %newwin height=400 width=400%http://www.life.de
> If I add height and width, it would be a defined size for a new win.

It would be very tricky to try to add this as a wikistyle.  Plus, 
height= and width= are already used for setting the size of embedded
images, so there'd be a conflict there.

Creating a link to open a new window with defined size probably
requires some custom markup, registered via the Markup() function.

Pm



More information about the pmwiki-users mailing list