<?php $name = 'bob'; ?> <button type="button" onclick="Fuction(<?php echo json_encode($name); ?>">name</button>
You have javascript disabled. You will not be able to edit any code.