I am currently redirecting users to another page in C # with the following code;
Response.Redirect("somepage.aspx");
However, I would like to do this in JavaScript.
Try this code below
<script language="JavaScript"> <!-- function move() { window.location = 'http://www.yourdomain.com' } //--> </script>
Basically you need to:
function goURL() { location.href="http://example.com" // change url to your's }
Additional java-script navigation options can be found at the following link: http://www.sivamdesign.com/scripts/navigate.html
Source: https://habr.com/ru/post/906650/More articles:Debugging LLVM using Eclipse - c ++System.console () returns null from Eclipse, but fine with the command line - javaIs it possible to simulate the Go interface in C / C ++? - goHow to get nsstring length in nsstring, which always consists of two digits? - objective-cGrails transactional behavior - springcmake "make install" to the remote machine? - linuxIs the structure of one element compatible with the element itself? - c ++How to request multiple downloads using Download Manager in Android 2.3.3 - androidJava Eclipse shortcuts for debugging in "Editing Java source" - javaFind the lowest XOR combination - optimizationAll Articles