Joke Collection Website - Public benefit messages - With C#, how to send information to the browser to make it go forward or backward, refresh and other operations are urgent?

With C#, how to send information to the browser to make it go forward or backward, refresh and other operations are urgent?

C# can't directly control the browser's forward or backward, which is realized by javascript. You can use c# to output javascript to the foreground page for control, and you can communicate with hi if you have any questions.

& ltinput type = button value = forward onclick = history . go( 1)>

& ltinput type = button value = forward onclick = history . forward()>

& lt input type = button value = backward onclick = history.go (- 1) >

& ltinput type = button value = backward onclick = history . back()& gt;

Http protocol is stateless. When an event happens to the client, let it send a request to the server, and then the server sends the js code to the client for execution.

I think the landlord definitely wants to solve some other problems, not the problem of js controlling the browser. If you have any other questions, you can communicate with me.