I am trying to add a temporary auto pop up window on my homepage, however pasting my .js script on the html editor doesn't seem to work.
I have added my script to my Page.ss file but now my pop up window comes up everytime any page loads.
Is there a way I can tell my pop up window to load only when my home page is loaded?
It would be much better to use the Class of the page in the if statement as then you will include it on all the pages of that type AND you will be able to have your users change the title of the page and it will still work.
<% if ClassName = HomePage %>
alert('this is the home page');
<% end_if %>