window

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented Window")
	ErrNotAWindow     = errors.New("Object is not a Window")
)

Functions

func Alert

func Alert(message string) error

func Atob

func Atob(encoded string) (string, error)

func Btoa

func Btoa(message string) (string, error)

func Confirm

func Confirm(message string) (bool, error)

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of formdata

func Prompt

func Prompt(message, input string) (*string, error)

Types

type Window

type Window struct {
	eventtarget.EventTarget
}

func New

func New() (Window, error)

func NewFromJSObject

func NewFromJSObject(obj js.Value) (Window, error)

func Open

func Open(url string, opts ...interface{}) (Window, error)

func (Window) Blur

func (w Window) Blur() error

func (Window) Document

func (w Window) Document() (document.Document, error)

func (Window) History

func (w Window) History() (history.History, error)

func (Window) IndexdedDB

func (w Window) IndexdedDB() (indexeddb.IDBFactory, error)

func (Window) LocalStorage

func (w Window) LocalStorage() (storage.Storage, error)

func (Window) Location

func (w Window) Location() (location.Location, error)

func (Window) Navigator

func (w Window) Navigator() (navigator.Navigator, error)

func (Window) OnHashChange

func (w Window) OnHashChange(handler func(e event.Event)) (js.Func, error)

func (Window) OnPopState

func (w Window) OnPopState(handler func(e event.Event)) (js.Func, error)

func (Window) SessionStorage

func (w Window) SessionStorage() (storage.Storage, error)

func (Window) Window_

func (w Window) Window_() Window

type WindowFrom

type WindowFrom interface {
	Window_() Window
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL