PHP page workout_now.php
...
<div id="playworkout"><button onClick="playWorkout()">Play Workout</button></div>
...
JAVASCRIPT
function playWorkout(){
...
...
...
}
function playWorkout() will build an array of values that will be passed as a parameter, but for now I simply want to know the best way to
open “play_workout.php” and close “workout_now.php” when function playWorkout() is called?
Thanks so much!