WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
HTML document demonstrating button events
webkit-button.html (text/html), 619 bytes, created by
Corey
on 2011-06-23 16:07:39 PDT
(
hide
)
Description:
HTML document demonstrating button events
Filename:
MIME Type:
Creator:
Corey
Created:
2011-06-23 16:07:39 PDT
Size:
619 bytes
patch
obsolete
><!DOCTYPE html> ><html lang="en"> > <head> > <meta charset="utf-8" /> > <title>Webkit Button Element Test</title> > </head> > <body> > > <button id="button1">Test Button</button> > > <script> > var button1 = document.getElementById('button1'); > > button1.onfocus = function() { > if (typeof console != 'undefined') > console.log('Button focused!'); > else > alert('Button focused!'); > }; > > button1.onblur = function() { > if (typeof console != 'undefined') > console.log('Button blurred'); > else > alert('Button blurred!'); > }; > </script> > > </body> ></html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Webkit Button Element Test</title> </head> <body> <button id="button1">Test Button</button> <script> var button1 = document.getElementById('button1'); button1.onfocus = function() { if (typeof console != 'undefined') console.log('Button focused!'); else alert('Button focused!'); }; button1.onblur = function() { if (typeof console != 'undefined') console.log('Button blurred'); else alert('Button blurred!'); }; </script> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 63299
: 98424