title: Want to show the response text message ajax success function on another view page
body: <pre><code>$.ajax({
      type:&quot;POST&quot;,
      url:&quot;&lt;?php echo site_url(); ?&gt;/Barcodescanner/Prepare_Csv_File&quot;,
      data:{
          po_number : po_number 
      },
      success:function(response){
          // alert(response);
          if (confirm('Are you sure?')) {
              window.location.href = '&lt;?php echo base_url(); ?&gt;Barcodescanner?PO_Number=&lt;?php echo $po_number; ?&gt;';
              var success = '&lt;div class=&quot;alert alert-success alert-dismissible&quot;&gt;&lt;p&gt;&lt;b&gt;Success: &lt;/b&gt;Prepared file for PO Number, &lt;a href=&quot;/public/log_files/Barcode_Scanner_Report_File/'+response+'&quot;&gt;Download&lt;/a&gt;&lt;/p&gt;&lt;a style=&quot;margin-right: 13px;font-weight: bold;&quot; href=&quot;#&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;close&quot;&gt;&amp;times;&lt;/a&gt;&lt;/div&gt;';
                  
               $(&quot;#response_msg&quot;).html(success);
          }
          
      }
  });
  </code></pre>
  <p>I want to show that <code>response_msg</code> on the redirect page. I know how to show <code>response_msg</code> on the same page, but how can I show it on another page?</p>