JavaScript - after triggering postback in javascript & continue to take innerhtml

Asked By anbu n on 18-Oct-11 11:56 AM
function postback() {

    var btnAdd = document.getElementById('btnAdd');

   javascript: __doPostBack('btnAdd', '');

function copy() {

    var isValid = true;
    var idprefix = 'ctl00_ContentPlaceHolder1_';

    var tbl = document.getElementById('tblDynamic');



here in above code i can't able to do anything after postback function , i want to call simultaneously next function to get innerhtml in my next function
Riley K replied to anbu n on 25-Oct-11 05:30 AM

You should  call  __doPostBack at the last, after all your logic is executed.