I need to let the code below to stop directly execute the code without button click. I want the function to run when button is click on it. Thanks for the help
<html>
<head>
<script language="javascript" type="text/JavaScript">
{
function popup() {
<?php echo shell_exec('sh bash_test.sh') ?>;
}
}
</script>
</head>
<body>
<input type="button" onclick="popup()" value="popup">
</body>
</html>