Interface WindowFunctions

    • Method Detail

      • alert

        void alert​(JSString arg)
        function alert() Displays an alert box with a message and an OK button
        Parameters:
        arg -
      • blur

        void blur()
        function blur() Removes focus from the current window
      • clearInterval

        void clearInterval​(JS5Object arg)
        function clearInterval(arg) Clears a timer set with setInterval()
        Parameters:
        arg -
      • clearTimeout

        void clearTimeout​(JS5Object arg)
        function clearTimeout(arg) Clears a timer set with setTimeout()
        Parameters:
        arg -
      • close

        void close()
        function close() Closes the current window
      • confirm

        JSBoolean confirm​(JSString arg)
        function confirm() Displays a dialog box with a message and an OK and a Cancel button
        Parameters:
        arg -
      • focus

        void focus()
        function focus() Sets focus to the current window
      • getComputedStyle

        JS5Object getComputedStyle​(org.w3c.dom.Element arg1,
                                   JSString arg2)
        function getComputedStyle(arg1, arg2)
        Parameters:
        arg1 -
        arg2 -
      • moveTo

        void moveTo​(JSNumber arg1,
                    JSNumber arg2)
        function moveTo(arg1, arg2) Moves a window to the specified position
        Parameters:
        arg1 -
        arg2 -
      • moveBy

        void moveBy​(JSNumber arg1,
                    JSNumber arg2)
        function moveBy(arg1, arg2) Moves a window relative to its current position
        Parameters:
        arg1 -
        arg2 -
      • open

        Window open​(JSString URL,
                    JSString name,
                    JSString specs,
                    JSBoolean replace)
        function open(URL, name, specs, replace) Opens a new browser window
        Parameters:
        URL -
        name -
        specs -
        replace -
      • print

        void print()
        function print() Prints the content of the current window
      • prompt

        JSString prompt()
        function prompt(arg1, arg2) Displays a dialog box that prompts the visitor for input
      • resizeTo

        void resizeTo​(JSNumber arg1,
                      JSNumber arg2)
        function resizeTo(arg1, arg2) Resizes the window to the specified width and height
        Parameters:
        arg1 -
        arg2 -
      • resizeBy

        void resizeBy​(JSNumber arg1,
                      JSNumber arg2)
        function resizeBy(arg1, arg2) Resizes the window by the specified pixels
        Parameters:
        arg1 -
        arg2 -
      • scrollTo

        void scrollTo​(JSNumber arg1,
                      JSNumber arg2)
        function scrollTo(arg1, arg2) Scrolls the content to the specified coordinates
        Parameters:
        arg1 -
        arg2 -
      • scrollBy

        void scrollBy​(JSNumber arg1,
                      JSNumber arg2)
        function scrollBy(arg1, arg2) Scrolls the content by the specified number of pixels
        Parameters:
        arg1 -
        arg2 -
      • setInterval

        JSNumber setInterval​(JSObject arg1,
                             JSNumber arg2)
        function setInterval(arg1, arg2) Calls a function or evaluates an expression at specified intervals (in milliseconds)
        Parameters:
        arg1 -
        arg2 -
      • setTimeout

        JSNumber setTimeout​(JSObject arg1,
                            JSNumber arg2)
        function setTimeout(arg1, arg2) Calls a function or evaluates an expression after a specified number of milliseconds
        Parameters:
        arg1 -
        arg2 -
      • atob

        JSString atob​(JSString arg)
        function atob(arg) The atob() method of window object decodes a string of data which has been encoded using base-64 encoding. For example, the window.btoa method takes a binary string as a parameter and returns a base-64 encoded string.
        Parameters:
        arg -
      • btoa

        JSString btoa​(JSString arg)
        function btoa(arg) The btoa() method of window object is used to convert a given string to an encoded data (using base-64 encoding) string.
        Parameters:
        arg -
      • setResizable

        void setResizable​(JSBoolean arg)
        function setResizable(arg)
        Parameters:
        arg -
      • captureEvents

        void captureEvents​(JSObject arg1)
      • releaseEvents

        void releaseEvents​(JSObject arg1)
      • routeEvent

        void routeEvent​(JSObject arg1)
      • enableExternalCapture

        void enableExternalCapture()
      • disableExternalCapture

        void disableExternalCapture()
      • find

        void find()
      • back

        void back()
      • forward

        void forward()
      • home

        void home()
      • stop

        void stop()