Method Description alert() specifies a method that displays an alert box with a message an OK button. blur() specifies a method that removes the focus from the current window. clearInterval() specifies a method that clears the timer, which is set by using setInterval() method. close() specifies a method that closes the current window. confirm() specifies… Continue reading Window properties in JS
Tag: window
Show alert message in Suitelet POST
/** * * @param scriptContext */ function alertMesage(scriptContext){ var html = ‘<script> alert(“The quantity should be greater than Zero”);window.close() </script>’; scriptContext.response.write(html) } The alert message will show and on clicking ok will close the whole suitelet page
Opening New Page in Current Window
Some times client would like to open a new window on the current page itself. In order to achieve this we can use the _self option. The standard redirect() or resolveUrl() method will redirect to a new page opening the content on the new page. In order to open the new page in the current… Continue reading Opening New Page in Current Window