HOW CAN I PASS THE PRODUCT ID FROM PRODUCT VIEW PAGE TO NEW PAGE WHICH IS OPEN BY ONCLICK EVENT
There are multiple ways of doing it
1) If you are working with php-The $_POST or $_GET array might be having the value which you need. You need to specify the name of the elements
2) Th easiest way is by using Javascript
I hope this will help
https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Sending_forms_through_JavaScript