How to pass a url to a JavaScript function as a parameter?
<p>I just want to pass the base url to a javaScript  function. Function call is like as follows </p>

<pre><code>&lt;img src="assets/images/c_arow_rite.jpg" onClick="nextMonth('.$bs_url.')"/&gt;
</code></pre>

<p>It showing an error in the Error Console like </p>

<pre><code>Error: SyntaxError: identifier starts immediately after numeric literal
Source File: `http://mywebsite/rand/`
Line: 1, Column: 15
Source Code:
nextMonth(http%3A%2F%2F192.168.1.254%2Frand%2F)
</code></pre>
