javascript - Href link followed by onclick events when we press a button -
Currently I have a button that will open a popup and it will show some parameters (like ID, name) But now I want to open a welcome page (href link) and place that pop-up page with that ID and name that I have passed. My onclick event is a JavaScript code that will open popups. I have used something like this
It can be done in many ways. One simple way to do this is: -
- When the user is removed
onclick , then redirect the user to your welcome page. - At the same time of redirection, to get this information in popup, you want to get the parameters on the welcome page.
- After the welcome page has loaded, check whether the variables specifically get or not. If they are set, then show a popup window with the information passed by GET in that page.
Comments
Post a Comment