<script type="text/javascript">
//getting the url
var url=document.URL;
//set variable for change
var replacement='DispForm';
//replacing DispForm with EditeForm
url= url.replace(new RegExp(replacement, 'g'), 'EditForm');
//redirect a web page to a new url
window.location.href=url;
</script>
Thanks! :)
ReplyDelete