tobz173
06-01-2008, 11:19 PM
Im trying to create an automatic popup for my cousins website that i look after. The website is The Fox Hat Cafe (http://www.thefoxhatcafe.com.au)
Here is the code that ive implemented to try and get the popup,
<SCRIPT TYPE="text/javascript">
<!--
function popup(popup.html, A Fox Hat Message)
}
if (! window.focus)return true;
var href;
if (typeof(popup.html) == 'string')
href=popup.html;
else
href=popup.html.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=no');
return false;
}
//-->
</SCRIPT>
For some reason it's not working, i would appreciate any tips to why?
edit: solved thanks deezie
Here is the code that ive implemented to try and get the popup,
<SCRIPT TYPE="text/javascript">
<!--
function popup(popup.html, A Fox Hat Message)
}
if (! window.focus)return true;
var href;
if (typeof(popup.html) == 'string')
href=popup.html;
else
href=popup.html.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=no');
return false;
}
//-->
</SCRIPT>
For some reason it's not working, i would appreciate any tips to why?
edit: solved thanks deezie