Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form name="myform" method="post">
- <button onclick="Setview()">Click me</button>
- <input type="hidden" name="view" id="view"></input>
- </form>
- <script type="text/javascript">
- function Setview()
- {
- oFormObject = document.forms['myform'];
- oFormObject.elements["view"].value = 'youryiew'; //change this value to view you want to rederict
- document.forms["myform"].submit();
- }
- </script>
Add Comment
Please, Sign In to add comment