How to distinguish KickApp's list pages via JavaScript

/ Published in: JavaScript
Save to your folder(s)

Use the Ka.Util.getLocationParam utility method to get the mediaType GET parameter:

For more tips and tricks checkout the <a href="">KickApps resources page</a>.

Copy this code and paste it in your HTML
  1. if (Ka.Info.PAGE == "search/searchPage.jsp" && Ka.Util.getLocationParam('mediaType') === 'photo'){
  2. alert('Photo list page!')
  3. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.