O
O
OwerFan2020-04-17 13:35:02
PHP
OwerFan, 2020-04-17 13:35:02

How to pass a variable to onclick?

There is a variable in php $a. How to pass it to onclick to input. Those. so that
onclick="window.open($a)"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freelancer007, 2020-04-17
@OwerFan

onclick="window.open(<?= $a?>)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question