tags:

views:

121

answers:

4

I have a link like this

$contact_url="<a href=rentals_popup.php?id=$row->rentals_id >" . "Contact" . "</a>";

I want to open that page in a different window with

SMALLER WIDTH AND HEIGHT

DISABLED MAXIMIZE BUTTON

Can Anybody help me plz

+3  A: 

Plain HTML does not support this. You'll need to use some Javascript.

Also, note that large parts of the world are using a popup blocker nowadays. You may want to reconsider your design!

Thomas
Oh. Nice Suggestion. Thanks Thomas. But my requirement is that i want small window or dialog open and in that my php file should be shown
Rajasekar
+2  A: 

This should work

<a href="javascript:window.open('document.aspx','mywindowtitle','width=500,height=150')">open window</a>
Esben Skov Pedersen
A: 

You might want to consider using a div element pop-up window that contains an iframe.

JQuery Dialog is a simple way to get started. Just add an iframe as the content.

AverageAdam
A: 

since many browsers block popups by default and popups are really ugly I recommend using lightbox or thickbox they are prettier and are not popups they are extra html markups that are appended to your document's body with the appropriate CSS

http://jquery.com/demo/thickbox/

Anas Toumeh