In my web page I have some pages as /home, /about, /gallery, /contact.
On the I have a script as main.js . In this main.js script I have written some functions. Many of them is for all pages and just one function I don't want to enter to home page, is there any solution so I can control to which page which functions runs!
Actually want Im asking is, can I make this control by main Id or main class as > if on page exist #homepage don execute else execute , or similir to this idea ?
my king regards,