View Full Version : problem with pop-up code

08-05-2006, 07:02 AM

click testimonials, the popup does comeup but it also brings a page with a url that looks very much like the code behind it.
whats with that? how can i fix this extra window opening over the top of the flash?
it says,[object Window] on it.
the code i am using is

on(release) {
getURL("javascript:window.open('http://home.iprimus.com.au/theteam/enterhome.htm', 'RayWhitePopup', 'height=550,width=500,toolbar=no,scrollbars=no')");

so how can i make it just the pop up,not that extra window?


08-05-2006, 11:39 AM
Your missing your JS code in the <head> section of you HTML page.

Add this:

<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }

in-between the <head> and </head> tags of your HTML page.

Second and most glaringly is you don't need the getURL part, as the "open NewWindow does that already... just use this:


That should do it. :)