Hey guys this is kind of a JavaScript question but the script works elsewhere so I have a feeling it's got something to do with the fact it's being echoed by php. Can anyone tell me why this isn't working:
if (($_SESSION['count'] % 5 == 0) && ($_SESSION['countView'])) {
echo
'<a href="index.php?act=generate_quotes&beginCount&cb=%3C?php%20echo%20time();?%3E" id="logo" onClick="myinfo"(); return false"></a>';
And the function:
<script type="text/javascript">
<!--
function myinfo() {
window.open( "http://www.google.com/" )
}
//-->
</script>
The href link works fine. But I'm trying to get it to open a info window at the same time. Any reason this isn't working?
Thanks for any help.