JSFiddle - React, Tailwind, and code Playground

by Shree Khanal

HTML

<div class="data">
<a href="#" onclick="popupwindow('/includes/phoneNumberLookup.cfm?phone=(205) 324-5322&amp;doctorID=2013072910215350207237&amp;url= ' + document.URL + ' &amp;refUrl=','',250,150); return false;">  Click to See Phone Number</a>
</div>

JavaScript

var link = $('a').attr('onclick');
var equalPosition = link.indexOf('='); //Get the position of '='

var number = link.substring(equalPosition + 1);
var ps = number.indexOf('&');
var call=number.split('&')[0];
alert(call);