I struggle with Javascript, but I have a specific task that needs to be completed. I am participating in a school competition and need an alert to appear only once throughout the entire project, not just once per browsing session. The alert will inform users that Internet Explorer is not compatible with my site, recommending Chrome or Firefox instead. However, I want to avoid bombarding the judges with multiple pop-ups, so having it show up only once is crucial. I found the code below online, but I can't seem to get it working properly due to my limited Javascript skills - I'm better with HTML and CSS. If there are alternative solutions to achieve this goal, please let me know! Thank you!
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<!--[if IE]>
<script type="text/javascript">
$(document).one(function() { alert("You are using Internet Explorer to view this webpage. Your experience may be subpar while using Internet Explorer; we recommend using an alternative internet browser, such as Chrome or Firefox, to view our website."); });
</script>
<![endif]-->