/
How to show banner only on specified page(url)?
How to show banner only on specified page(url)?
<script>
var bannerId = 1;
var url = '/secure/Dashboard'
var bannerSelector = '.jibrokBanner[bannerid=' + bannerId + ']'
if(window.location.href.indexOf(url) >= 0){
AJS.$(bannerSelector).show()
} else {
AJS.$(bannerSelector).hide()
}
</script>
, multiple selections available,
Related content
Customizable Announcements - banner examples (🛠 section in work)
Customizable Announcements - banner examples (🛠 section in work)
Read with this
How to add message as popup(dialog)?
How to add message as popup(dialog)?
Read with this
How to hide and show banner with JavaScript?
How to hide and show banner with JavaScript?
Read with this