Me and my programmer has 2 different views for what "Inline JavaScript" is.
I said inline javascript means javascript placed directly in the HTML file, without in a .JS file.
My programmer means inline javascript is javascript on 1 line, and like
I give him right in, that inline javascript also is "οnclick='alert(...)" because it again is like my solutin #1, all javascript loaded in HTML and not in JS.
Who's right?
We have a HTML file, and there is javascript in the bottom, that is inline javascript, right?
解决方案
A script tag without a src (ie. with code directly in the HTML document) is referred to as an inline script.
An οnclick="..." attribute is called an inline event handler.