MCPcopy
hub / github.com/EngoEngine/engo / SetTitle

Function SetTitle

engo_js.go:223–229  ·  view source on GitHub ↗

SetTitle changes the title of the page to the given string

(title string)

Source from the content-addressed store, hash-verified

221
222// SetTitle changes the title of the page to the given string
223func SetTitle(title string) {
224 if opts.HeadlessMode {
225 log.Println("Title set to:", title)
226 } else {
227 document.Set("title", title)
228 }
229}
230
231// WindowSize returns the width and height of the current window
232func WindowSize() (w, h int) {

Callers 1

TestSetTitleHeadlessFunction · 0.70

Calls 1

SetMethod · 0.45

Tested by 1

TestSetTitleHeadlessFunction · 0.56