PDA

View Full Version : window.open error unterminated string constant



mldardy
05-26-2010, 05:54 PM
I am trying to open a link in a new window and get this error. What am i doing wrong on the code below:


<a onclick="window.open('http://c1739202.cdn.cloudfiles.rackspacecloud.com/Assignments_final_demo.htm'
width=" height='860,menubar=no,status=no,"' location="no,toolbar=no,scrollbars=no')&quot;"
c1739202.cdn.cloudfiles.rackspacecloud.com
window.open(?http: 1155, Assignments_final_demo.htm?,?>
<img alt="" hspace="0" src="/files/images/PUdropBoxDemoButton.jpg" align="default" border="0" /></a></div>

mldardy
05-26-2010, 06:54 PM
I ended getting the window to open with no errors but now it opens not only the popup window but opens in the current window I am on. so it opens up twice. Does anyone have any ideas why it is doing this, here is my code:



<a onclick="window.open('http://c1739202.cdn.cloudfiles.rackspacecloud.com/Assignmnets_final_demo.htm');"
href="http://c1739202.cdn.cloudfiles.rackspacecloud.com/Assignmnets_final_demo.htm" ?><img alt="" hspace="0" src="/files/images/PUdropBoxDemoButton.jpg"
align="default" border="0" /></a>