-
problem with pop-up code
http://home.iprimus.com.au/theteam/funny.html
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
Code:
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?
-munch
-
Your missing your JS code in the <head> section of you HTML page.
Add this:
Code:
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
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:
Code:
javascript:openNewWindow('http://home.iprimus.com.au/theteam/enterhome.htm','RayWhitePopup','height=5500,width=500,toolbar=no,scrollbars=no')
That should do it. :)