arguments - Cannot find missing ) in my code that shows in Chrome Console -
<html> <head> <script type="text/javascript"> function goclicky(meh) { var x = screen.width/2 - 700/2; var y = screen.height/2 - 450/2; window.open(meh.href, 'sharegplus''height=640,width=800,left='+x+',top='+y, 'toolbar=no' 'menubar=no'); } </script> </head> <body> <a href="https://www.youtube.com/embed/q96wht9s_1m" onclick="goclicky(this); return false;" target="_blank">check out new video blind!</a> </body> </html>
the chrome console shows "uncaught syntax error: missing ) after argument list.
i know chrome incredibly forgiving no0b i'd know is. first try @ new popup.
you're missing couple commas in window.open()
. should read:
window.open(meh.href, 'sharegplus', 'height=640,width=800,left='+x+',top='+y, 'toolbar=no', 'menubar=no');
Comments
Post a Comment