Hello friends i want to make a function that remove specific group of words from input link before doing search :
i got this coding :
jquery :
<script type="text/javascript">
function GetIdinfo() {
var q = document.getElementById("graph").value;
window.open("http://graph.facebook.com/" + q,"", "width=500px, height=300px");
}
</script>
HTML :
<form action="index.php" method="get">
<input id="graph" type="text" name="q" size="20" placeholder="Guru.of.Fun or 100XXXX"/></td>
<input type="button" name="graph" value="Get Facebook Data" class="submit" onclick="GetIdinfo()" />
and now i want to get some help to remove https://graph.facebook.com/ and only read text after back slash / for example :
100008622 from full link https://www.facebook.com/100008622
- if any user enter in search text area..