开发者

javascript: what is the "default" method?

开发者 https://www.devze.com 2022-12-09 01:34 出处:网络
I was browsing through the NPAPI documentation and I stumble on InvokeDefault method. Of course I googled a bit but without turning re开发者_如何转开发lated results.

I was browsing through the NPAPI documentation and I stumble on InvokeDefault method. Of course I googled a bit but without turning re开发者_如何转开发lated results.

So the questions are to the Javascript experts:

1) What is a "default" method on a JS object?

2) How can one declare & define such method?


I'm not sure, but I think this is the default browser behaviour, for example, when you click a check box, it toggle that box, if you click a textfield, it put the cursor in it and so on.

I don't think you can do anything with it except invoking it if you intercept the event.

0

精彩评论

暂无评论...
验证码 换一张
取 消