arguments - Cannot find missing ) in my code that shows in Chrome Console -


testing youtube popup

<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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -