Link to home
Start Free TrialLog in
Avatar of dba123
dba123

asked on

Hyperlink calling JavaScript syntax error

I'm not sure what's wrong with this, it's driving me batty:

<a href="javascript:" onclick="window.open('/controls/eBookPolicy.aspx','eBook Policy','toolbar=no,height=300,width=400,location=no,address=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,copyhistory=false');" runat="server"><b>HERE</b></a>

Javascript error: Invalid argument
Code 0
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dba123
dba123

ASKER

you know what also I didn't know.  You cannot have a space in the title, or else not all the attributes will work such as location=0, etc.