Thursday, September 15, 2011

Is it possible to remove dynamicly change the properties of the current window using javascript?

Can I have a webpage remove forward and backbuttons for instance after the page has loaded (not while opening a new window using window.open() )Is it possible to remove dynamicly change the properties of the current window using javascript?Is the window your window or a window from a different source?



You can easily disable your window buttons. If the window comes from a different source, you'd have to referrence the windows button object by name to disable it.



Also, the browser will give you the amount of power you have to work with in doing so. IE6 has great DOM commands and if you were just targeting this browser then look into disabling screen objects at MSDN, it's really easy.



You usually can easily find %26quot;How To%26quot; answers at great programmers sites like MSDN, Programmer's Paradise, SourceFource to name a few.



P.S.: If you have access to apply a css file to the window then it's so easy to hide window objects like buttons using simple css commands.Is it possible to remove dynamicly change the properties of the current window using javascript?u can usually do that by some scripting techniques as many sites have their back and forward buttons disabled or even if they are working they point to the current location only.