File tree Expand file tree Collapse file tree
src/main/java/org/htmlunit/javascript/host/dom Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525import static org .htmlunit .javascript .configuration .SupportedBrowser .EDGE ;
2626import static org .htmlunit .javascript .configuration .SupportedBrowser .FF ;
2727import static org .htmlunit .javascript .configuration .SupportedBrowser .FF_ESR ;
28- // import static org.htmlunit.javascript.configuration.SupportedBrowser.IE;
2928
3029import java .io .IOException ;
3130import java .io .Serializable ;
@@ -1362,6 +1361,15 @@ public void setOnfocus(final Object handler) {
13621361 setEventHandler (Event .TYPE_FOCUS , handler );
13631362 }
13641363
1364+ /**
1365+ * Returns the {@code onfocus} event handler for this element.
1366+ * @return the {@code onfocus} event handler for this element
1367+ */
1368+ @ JsxGetter
1369+ public Object getOnfocus () {
1370+ return getEventHandler (Event .TYPE_FOCUS );
1371+ }
1372+
13651373 /**
13661374 * Sets the {@code onkeydown} event handler for this element.
13671375 * @param handler the {@code onkeydown} event handler for this element
You can’t perform that action at this time.
0 commit comments