Add following Javascript code between <head></head> tags.
<script type=""type/javascript>
function maxwin() {
var wscript = new ActiveXObject("Wscript.shell") ;
if (wscript!=null)
wscript.SendKeys("{F11}");
}
<script>Call javascript function in button click event as below:
<asp:Button ID="Button1" OnClientClick="maxwin();" runat="server" Text="Button"
onclick="Button1_Click" />
onclick="Button1_Click" />
ActiveXObject is not defined
ReplyDeletehow to click F11 Keyboard Key using JQuery programatically
ReplyDeleteGood readingg your post
ReplyDelete