How to get a particular value from innerhtml in Javascript?
<p>Recently I am working with project a in which i want the value of <code>#page='+pid+'"</code>
from this embeded code of <code>innerhtml</code>. I have tried with index as position, but dit not get the desired result.
There is pageid value, which I want. I have also tried this:</p>

<pre><code>var aPosition = aURL.indexOf(pid);
var res =aURL.charAt(aPosition)&lt;/code&gt;
var aURL=document.getElementById('pdffile').innerHTML='&lt;embed  src="../EyeLegalAdmin/wp-content/plugins/EyeLegalAdmin/Data/&lt;?=$_GET['CaseId']?&gt;/&lt;?=$_GET['file']?&gt;#page='+pid+'" type="application/pdf" height="618px" width="100%" onScroll="yes"  /&gt;';`
</code></pre>

<p>How can I go about this?</p>
