title: How to make Jump link after load from controller in codeigniter
body: <p>i have some question about how to create jump link after load from controller in codeigniter. i have some idea to combine jquery script after load from controller</p>
  
  <p>here is what i already tried : </p>
  
  <p>in index.php i create this code</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;h1&gt;Create Jump Link Page &lt;h1&gt;
  &lt;Br&gt;
  ......
  &lt;br&gt;
  &lt;div id="bottom"&gt;bottom line&lt;/div&gt;
  &lt;body&gt;
  
  &lt;script&gt;
    $(window).on('load', function() {
        var jumplink = "&lt;?php echo $goto; ?&gt;";
        var top = document.getElementById(jumplink).offsetTop;
        window.scrollTo(0, top);
      });
  &lt;/script&gt;
  &lt;html&gt;
  
  </code></pre>
  
  <p>in controller file </p>
  
  <pre><code>public function index() { 
       $param['goto'] = "bottom";
       $this-&gt;load-&gt;view('admin/index', $param);
  }
  </code></pre>
  
  <p>but it is not working. how do i can make link jump after load from controller.. is that possible ?</p>