0

I have used the common header and footer for my website.

The javascript code I have used for it. It works in Firefox but not in Chrome.

The javascript code is

$( document ).ready(function() {
    $("#header").load("header.html"); 
    $("#footer").load("footer.html"); 
});
Konstantin Dinev
  • 34,219
  • 14
  • 75
  • 100
  • Possible duplicate of [jQuery .load() not working in Chrome](http://stackoverflow.com/questions/2990518/jquery-load-not-working-in-chrome) – Dovydas Šopa Mar 22 '16 at 07:31

1 Answers1

0

A similar question was posted a few years ago: jQuery .load() not working in Chrome

To summarize the solution, try running Chrome with

--allow-file-access-from-files

Community
  • 1
  • 1
aeb0
  • 816
  • 9
  • 12