diff --git a/index.html b/index.html index 68068910bc36639e28310912d12b3c656c507358..e5e693fff62fda990d32dc6d6c8c0800a05f45aa 100644 --- a/index.html +++ b/index.html @@ -68,6 +68,6 @@ </tr> </table> <!--Question 6--> - <button onclick="#">Click me</button> + <button onclick="goToCCI()">Click me</button> </body> </html> diff --git a/index.js b/index.js index 21818a6c97b197999b30d2967b493f010c04c77e..8663ff1dd6e6492bffe7d3fe6cad54d08906b702 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ function goToCCI() { - //window.open('https://drexel.edu/cci/'); + window.location.replace('https://drexel.edu/cci/') } @@ -12,7 +12,7 @@ function getBooks() { xhr.onreadystatechange=function() { myCallBack(xhr); }; - xhr.send(null); + xhr.send(null); } function myCallBack(xhr) { @@ -25,4 +25,4 @@ function myCallBack(xhr) { <th>Available?</th> </tr>` + xhr.responseText; } -} \ No newline at end of file +}