Click here to Skip to main content
15,906,558 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
If i changed the screen mode in full screen automatically will appear in close button, i need to disable the option please any one suggest

What I have tried:

document.getElementById("BtnFullscreen").addEventListener("click", function () {
                var
                    el = document.documentElement
             
                    , rfs = el.webkitRequestFullScreen;

                rfs.call(el);

                $("close").remove(); 
                return false;

            });
        }
Posted
Updated 23-Dec-19 6:57am
v2

1 solution

It's simple, really. You can't.
 
Share this answer
 
Comments
Sundaramoorthy Natarajan 25-Dec-19 11:52am    
i can't disable the button, please advise
Dave Kreskowiak 25-Dec-19 12:11pm    
That's right! You CAN'T disable that button. There's no way to do it from code in the running in the browser.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900