Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Show a hidden DIV with URL parameter Reply To: Show a hidden DIV with URL parameter

#263234
Shikkediel
Participant

The search method will return an integer, so it won’t ever be true. You’d probably want to do something like this:

if (url.search('show=true') >= 0) {

codepen.io/anon/pen/YEBXea

You’ll notice I’ve used “boomerang” to match something in the url, you can see the full path with the line that’s commented out.