Displaying Extension Library Dialog box when page loads?

前端 未结 3 1092
别那么骄傲
别那么骄傲 2021-01-28 03:31

Is there any way to display an extension pages dialog box when my page loads?

3条回答
  •  逝去的感伤
    2021-01-28 03:57

    Bruce,

    You could use jQuery to 'push' the button on page load.

    Try putting this clientside js code in your onClientLoad event

    $(document).ready(function(){
        $('a.btn').trigger('click');
    });
    

    You will have to load jQuery to use this if you don't already have it loaded. You might also be able to do the same thing with dojo.

    EDIT: You might have to modify the selector (the tag and class in the parens line 2) above if not using bootstrap. I would give it a unique class so as not to 'push' any other buttons at the same time.

提交回复
热议问题