miso-0.21.1.0: A tasty Haskell front-end framework

Copyright(C) 2016-2018 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <djohnson.m@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Effect.DOM

Description

 

Synopsis

Documentation

focus :: JSString -> JSM () Source #

Fails silently if the element is not found.

Analogous to document.getElementById(id).focus().

blur :: JSString -> JSM () Source #

Fails silently if the element is not found.

Analogous to document.getElementById(id).blur()

scrollIntoView :: JSString -> IO () Source #

Calls document.getElementById(id).scrollIntoView()

alert :: JSString -> JSM () Source #

Calls the alert() function.