Menu

[Solved]Javascript Jquery Need Write Code Involves 2 Html Pages Page 1 Needs Button Clicked Displa Q37171646

JAVASCRIPT/JQUERY

I need to write code that involves 2 html pages, page 1 needs abutton that once clicked, it displays page2. On page 2 there needsto be a go back button to go back to page1. Here is my code forpage 1. The page names are page1 and page2

<h1>This is page 1</h1>

<input type = “button” id=”page2″ value= “Go to page2”>

<script>

Location = “page1.html”;

$( “#page2” ).click(function() {

location.replace = “page2.html” ;

});

</script>

Expert Answer


Answer to JAVASCRIPT/JQUERY I need to write code that involves 2 html pages, page 1 needs a button that once clicked, it displays … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *