Question for Code Gurus
Question for Code Gurus
I want to add a link from Site A to Site B, where Site B has a link with an onclick attribute. For example:
Site B has a welcome page. The welcome page contains this link:
<a href="javascript:void(0);" onclick="openLoginModal()">Login</a>
I want to create a link from site A, to the welcome page of site B, but that automatically opens the LoginModal as onclick.
I tried something like this:
<a href = "https://example.com" onclick="openLoginModal()">Click here</a>
But it doesn't work.
Any help is appreciated. Thanks!
|