SetTitle changes the title of the page to the given string
(title string)
| 221 | |
| 222 | // SetTitle changes the title of the page to the given string |
| 223 | func 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 |
| 232 | func WindowSize() (w, h int) { |