HOW TO MAKE IT SO THAT DESCRIPTION IS ONLY THE DEFAULT HEADER IN SUBPAGES

1 Reply
lafayette
lafayette8mo ago
right now the index html page header 2 displays 'Description' even tho it shld display 'why i reflect'. This is because of the following line in the javascript: "let currentOption = 'Description'; // default option" I need the (currentoption stuff = Description) line; to only be applicable on the other html subpages not the index.html page.... How do I do this? Do I need to use location.pathname to fix this?