Code:
onclick='javascript:window.open("file:///url.htm","blank","toolbar=no,location=no,width=600,height=350,top=0,left=0,scrollbars=yes")'; return false;">....
quite a few problems--
Quotes must match... you open with a single quote, and close with double. Also, for html attributes, use double quotes. Inside javascript, use single. And javascript: is an alternate way to use javascript that I've only seen used with a elements within the href part.... href="javascript:....", not like this. onClick is javascript to begin with, so no need to set that.
Here's the fixed version:
Code:
onclick="window.open('file:///url.htm','blank','toolbar=no','location=no','width=600',height=350,top=0,left=0,scrollbars=yes'); return false;">
And... I give up now. You have no quotes around the attributes in the function near the end, and not sure if you define it like that (I'm no JS expert). I'm not used to seeing something=value, within a function like that. Not sure how to fix it. I'd suspect that it's just the value... like 600, not width=600, but not exactly sure. Where did you get the code? I'm sure it tells you somewhere...
Bookmarks