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
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
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!
This should work
<a href="javascript:window.open('document.aspx','mywindowtitle','width=500,height=150')">open window</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.
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