Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to Make New Window Fixed Height & Width?

How to Make New Window Fixed Height & Width?

Views: 3,176

Results 1 to 3 of 3
23 Mar 2011, 2:40 AM
#1
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

How to Make New Window Fixed Height & Width?

Hello. The following code:

array_push($selection['fields'],array('title' => 'CVV number ' . ' ' .'<a href="cvv.html" target="_blank">' . '<u><i>' . '(What is it?)' . '</i></u></a>',

How can I make this open with a width of 400 and height 400? Not sure how to go about doing this. Thank you!

24 Mar 2011, 9:28 PM
#2
petlife avatar

petlife

New Zenner

Join Date:
Jun 2010
Location:
Denmark
Posts:
62
Plugin Contributions:
0

Re: How to Make New Window Fixed Height & Width?

ryanb4614:

How can I make this open with a width of 400 and height 400? Not sure how to go about doing this. Thank you!

You can try this:

<a href="cvv.html" onclick="window.open('cvv.html', '(What is it?)', 'width=400, height=400, scrollbars=0, resizable=0')">(What is it?)</a>

you can use above parameters

a.html=file to be opened
a = name of the window to avoid multiple windows being opened for every click

24 Mar 2011, 9:53 PM
#3
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: How to Make New Window Fixed Height & Width?

I think you can edit that in the modules/pages/popup_ccv_help/jscrip_main.php

Adjust the width and height parameter to your needs.