1
How to do a function to handle parameters passed on onclick
to mount a URL and open it in a new tab? Example:
<button onclick="javascript:parent.funcao1('TESTE','ABCD', 'eydub21lJzonam9hbycsJ2lkYWRlJzogJzI5J30=');">TESTE</button>
part of the data I need are in Base64 in the parameter: eydub21lJzonam9hbycsJ2lkYWRlJzogJzI5J30=" que são {'nome':'joao','idade':'29'}
example URL to mount: www.teste.com/pesquisa.php?nome='joao'&idade='29'&segmento='ABCD'
Mounted URL can be opened on iframe
, when new div
, or new tab.
Note: I cannot change anything on button
'cause it’s pulled from a database in this formatting.
Thanks in advance.
perfectly attended what I needed, thank you
– user9618369