-
Notifications
You must be signed in to change notification settings - Fork 0
How to display a message
cl4cnam edited this page Dec 5, 2023
·
4 revisions
Just code:
displayNewMessage('yourMessage')
code:
displayNewMessageIn('yourMessage', theEnclosingElement)
theEnclosingElement
can be a HTMLElement or a CSS selector string.
The new displayed message is a <p>
HTMLElement with a CSS class .display
so you can style it in your stylesheet.
Note
If you've included lib.css
, it gets a default style like this:
code:
displayNewElementIn('yourMessage', theEnclosingElement, typeOfNewElement, doesItScrollIntoView)
typeOfNewElement
has to be a string with the tag name.
doesItScrollIntoView
has to be a boolean (true
or false
).
FuncSug Documentation