I have a php code with this line:
<input id="sample" name="btnViewTutorial" type="button" />
and when clicked, a javascript would run:
var sampleButton = document.getElementById("sample");
sampleButton.onclick = function(){
window.open ("/tutorials/sample.php", "mywindow","status=0,toolbar=0,height=480,width=600,directories=0");
}
What i would like to do is, when the button is clicked, /tutorials/sample.php should have the value passed by the button, like tutorials/sample.php?video=1 or tutorials/sample.php?video=ff56gskkd2.
How would I have the button passed in a value? and How would java script receive the value?