Friday 30 September 2016

How to use javascript Function in php

<a href="javascript:readmore(id)"> Read More </a>

<script type="text/javascript">
function readmore(id)
{
 if(confirm('Sure To Remove This Chat ?'))
     {
        window.location.href='?readmore='+id;
      }
}
</script>

No comments:

Post a Comment