Hi Geoff,
Hmmm... the syntax for the
targetfeatures property is shown in
sample11 the way John suggested you try it. But that apparently doesn't work. It's as if only the first attribute in the sequence is having any effect. So, I tried something else. It may seem odd, so let me explain why I tried it.
The menu's
targetfeatures property essentially passes the specified values to the optional
features (or attributes) parameter of javascript's native
window.open() method. In the window.open() method, the
features parameter is a
comma-separated list of window attributes passed in a string. Since you would normally use a comma-separated list when calling window.open() directly, I figured it'd be worth a shot to try a comma-separated list (rather than space separated) in the menu's
targetfeatures property.
It worked! In other words, you might try:
Code: Select all
aI("text=Mainstream Lines;url=http://www.icruise.com/mainpop.htm;target=newWindow;targetfeatures=width=415,height=440;");
Note the comma between with=415 and height=440.
Other things to note:
(1) I also got rid of scrollbars=no because I believe "no" is the default state for scrollbars in a popup window.
(2) Instead of target=_blank I used target=newWindow, just to give the window a name (in case you need to reference it later. _blank will do if you won't need to reference the open window for anything later).
(3) I'm sure you know this, but it doesn't hurt to remind people... Since your window is a popup, your users may not see it if they have popups blocked.
Give the comma separation a shot and see if that works for you. If you'd rather not try it (given that it's not quite according to documentation), then you could always go with a js function to open your popup. If you don't know how, then we can show you if that's something you'd like to try.
Hope that helps,
Kevin