I have a multi page webpage that has a header and footer on all pages, and I am creating an app than can view certain areas of the page, but I dont want to show the footer and h
If jQuery is ok:
var headerSelector = "#header"; // TODO: replace as needed var footerSelector = "#footer"; // TODO: replace as needed if(window.location.search.indexOf("inapp=true") !== -1) { $(headerSelector).hide(); $(footerSelector).hide(); }