开发者

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:-

  1. Redirect the user to your welcome page when onclick is fired.
  2. At the same time of redirection, pass the information u want to show in the popup as get parameters to the welcome page.
  3. 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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜