<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title> Previous and next button </title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container preNextBg">
<div class="col-md-3 preButton">
<button type="button" class="btn btn-primary" onclick="clickChange('prev')"> Previous </button>
</div>
<div class="col-md-6">
<div class="midArea" id="nextChange"></div>
<div style="margin-top:30px;">
<script>
document.write("Red", ", ", "Darkgreen", ", ", "Mediumvioletred", ", ", "Darkblue", ", ", "Yellow", ", ", "Darkorange", ", ", "Deeppink");
</script>
</div>
</div>
<div class="col-md-3 nextButton">
<button type="button" class="btn btn-primary" onclick="clickChange('next')"> Next </button>
</div>
</div>
</body>
</html>