jquery - URL that automatically opens popup on page -


site: http://bit.ly/1dpaxss

the above webpage opens popup when "inform me when available" button clicked. using current html believe clicking class "open" triggers popup:

<a href="#" class="open cc-inform"><img src="http://uat.priworks.com/sustaingreen/sites/all/themes/sustaingreen/images/cc-applynow.png"></a> 

my question is, can formulate url when loaded automatically triggers popup open. should not open anytime page loaded when coming page using specific url trigger. ie.e www.site.com/page#open or - pretty sure can js/jquery not sure if need change way popup currently.

sorry kevin seems not understanding dom concepts correctly. "open" class might used select element , assign click event it, not triggers popup. sure can need , it's easy to.

url:

www.site.com/page#open  

jquery:

$(function(){   if(location.hash == '#open'){     $('.popbox .open').click()   } }); 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -