Page 1 of 1

Link and javascript

Posted: 17 May 2007, 01:56
by Galium
In a description, I have a link to a page : is it possible to open this page in a window, with the size fixed?

Re: Link and javascript

Posted: 18 May 2007, 10:18
by mjau-mjau
Galium wrote:In a description, I have a link to a page : is it possible to open this page in a window, with the size fixed?
You mean a popup window by javascript I presume? There is atleast no other way to open a window with a fixed size.

In your description, try the following:
Code
<a href="javascript:window.open('link','win_name','width=400, height=250,toolbar=0,location=0,directories=0,status=0,menubar=0, scrollbars=0,resizable=0,top='+Math.round(screen.height/2-125)+', left='+Math.round(screen.width/2-200)+'');void(0);"> link text here</a>