Sorry for this very basic question and this is my first time posting. I am trying to link the following jquery to each html page in a project:
$(document).ready(function() {
$(".class").append("<p><a href='../../homepage.htm'>Home page</a></p>");
});
The jquery is stored in a separate folder so I just reference it from each HTML page. However, the HTML pages are stored in folders in a directory type structure so does the path ../..homepage.htm
need to be different depending on where the HTML page is located in relation to homepage.htm
?
If so, do I need a separate jquery to handle different relative paths? I suppose I could use the absolute path of homepage.htm but its location would need to be updated for each version of the project.
thanks for any help