Knowledgebase

Home / Help Central / Knowledgebase

How can I show or hide page content based on variable in URL?

You can use javascript to show/hide content on the page based on a querystring variable. This is very useful if you want to show the same page for all your visitors, but would like to show/hide content for a specific audience based on a particular audience or inbound link.

See code examples here:

  1. Using Javascript - http://stackoverflow.com/questions/13852056/show-hide-elements-based-on-query-string-value
  2. Using Classic ASP - http://forums.asp.net/t/1770051.aspx/1