Href link followed by onclick events when we press a button
Presently I have a button which will open a popup开发者_开发问答 and it also pass some parameters(like id,name) in the same page.But now i want to open a welcome page(href link) and there it should the popup page with that id and name what i have passed.My onclick event is a javascript code which will open a popup.I have used something like this
This can be done in several ways. One simple way is:-
- Redirect the user to your welcome page when
onclick
is fired. - At the same time of redirection, pass the information u want to show in the popup as get parameters to the welcome page.
- Once the welcome page is loaded, check whether the particular get variables are set. If they are set, show a popup window in that page with the information passed via GET.
精彩评论