Click here to Skip to main content
15,942,710 members
Please Sign up or sign in to vote.
0.00/5 (No votes)

I have a link
<a href="#" data-popup=".popup-token" class="open-popup" >SIGN UP</a>

this opens a div popup:
<div class="popup popup-token"></div>

Now I want to open this page and have the popup loaded immediately, how do I do this using :
window.location.href = "#!/photos.html";

How do I pass the data-popup and class parameters to the new page opened?

What I have tried:

How do I pass the Class and data-pop parameters through window.location.href or any similar javascript or jquery commands?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900