I want to pass a URL on click of a button so the browser can redirect to the URL.
url value = /web/SMI6041001090/home?contId=186&contName=sa
When a user clicks on the button it should redirect to this URL.
var url = document.<portlet:namespace />regForm.fwdURL.value;
alert('url -->'+url);
jQuery('.submit-button').click(function(){
// Pass URL here.
});