title: How to call a function in one html page in another html page
body: <p>I have 2 pages. one.html and two.html</p>
  
  <p>The first html page contains a script tag with a java script function modify(d).In two.html i want to call this same function instead of retyping it again.How can i do this? Do i need to create a link between the pages? if yes, How?</p>
  
  <p>I have tried using  in the second file. But i keep getting the error: "modify(d) not defined" in the console. </p>
  
  <p>Both of the files are placed next to each other in my folder structure so the path should be correct.</p>
  
  <p>Thank you in advance. </p>