title: Passing URL as parameter in JS function
body: <p>This is my code:</p>
  
  <pre><code>var url = f.href.value;
  ed.dom.setAttribs(e, {
      href : 'javascript:void(0)',
      onclick: 'doSomething(' + url + ')'
  });
  </code></pre>
  
  <p>And the doSomething method:</p>
  
  <pre><code>function doSomething(url) {
      windowMy = dhxWins.createWindow("externalLink", 10, 10, 630, 630);
      windowMy.setText("Title");
      windowMy.attachURL(url);
  }
  </code></pre>
  
  <p>When doSomething is called, I get the error: Uncaught SyntaxError: Unexpected token :, when url="http://somewebsite/site".</p>
  
  <p>What should I do? How can I pass url as parameter in JS function?</p>