JavaScript embedded in html