window they work (or don't work!)

I want this link to open a new window with specified dimensions and attributes.  It won't work for some reason.

<a href="Home.cfm" target="_blank" onClick=""Home.cfm", "HR - Training Database WEbsite", toolbar=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=648,height=800)">Training Website Home Page</a>
Who is Participating?
Tacobell777Connect With a Mentor Commented:
1. use single quotes
2. create  a handle to the new window so you can close it

<a href="Home.cfm"
   onClick="newWin ='Home.cfm', 'HR - Training Database WEbsite', 'toolbar=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=648,height=800')">Training Website Home Page</a>

newWin is the handle, and you can close it like so

<a href="Home.cfm" target="_blank" onClick=""Home.cfm", "HR - Training Database WEbsite", 'toolbar=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=648,height=800')">Training Website Home Page</a>
I should have explained: The last parameter needs quotes around it - its a STRING of a list of settings.
nau2ndAuthor Commented:
I continually get error message saying that the parameters are not legitimate with certain browsers.  Also, it plainly doesn't work.  I tried adjusting the width to see a change, but it doesn't matter what i have in it, the window stays the same .

Any other suggestions..........
try the following

<a href="home.cfm" target="_blank" onClick="'Home.cfm', 'HR - Training Database WEbsite', 'toolbar=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=648,height=800'); return false;">Training Website Home Page</a>

You WILL have to change your double quotes to single quotes, as Tacobell777 pointed out, or use &quot; instead. Also add a return false; to the end of the onClick call.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.