![]() |
|
|||||||
| PHP - Code PHP programming - Ask questions and help people with PHP code. If you are stuck and need help, this is where you ask for help. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hola a todos, mi problema es que tengo este componente tipo menu y he programado en el evento onclick de javascript lo siguiente:
tag = event.getTarget().tag; if(tag == '1') { window.location = "Menu.php"; } if(tag == '2') { window.location = "FrmCapturaBC.php"; } Lo que pasa es que solo me reconoce el primero, porque cuando le doy click al otro menu(tag = 2) no sirve(don't go) y no se porque, alguna idea de que sera?? lo que quiero hacer es ver otra pagina dependiendo del menu que elige el usuario..... |
| Sponsored Links |
|
|
|
|||
|
Hello everybody, my problem is that I have this component type menu and I've programmed into the onclick event of the following javascript:
tag = event.getTarget().tag; if(tag == '1') { window.location = "Menu.php"; } if(tag == '2') { window.location = "FrmCapturaBC.php"; } What happens is that I only recognize the first, because when I click to another menu (tag = 2) does not and do not know why, any idea that will be? I want to do is see another page depending on the menu that the user chooses... |