Click to See Complete Forum and Search --> : keypress
drewex
12-11-2003, 01:26 PM
hi all
Is there a way to send a F11 keypress to IE. So it will go to channelmode. keypress, keydown or keyup can catch the key event thats used so the opposite could be don right? NO Activex Please
fredmv
12-11-2003, 02:36 PM
I don't believe that's possible. How would you like someone sending an ALT + F4 key sequence to you?
drewex
12-11-2003, 03:45 PM
thats easy window.close but there should be a way to get the page to channel mode with out opening new window
fredmv
12-11-2003, 04:50 PM
Originally posted by drewex
thats easy window.close but there should be a way to get the page to channel mode with out opening new window
Sure, you could use the close method, but does pressing ALT + F4 confirm before closing the window? ;)
That was just an example, there are plenty of other mischievous things you could do if you could execute key sequences with JavaScript.
drewex
12-11-2003, 05:17 PM
you can close the window WITH OUT confirmation there is a way to do that but the idea isnt that it is getting fullscreen here.
fredmv
12-11-2003, 05:23 PM
I was just making a point. Back to your original request, all you should need is:<a href="http://www.google.com/" onclick="window.open(this.href, '', 'channelmode');">Launch Google in channelmode.</a>
drewex
12-11-2003, 05:30 PM
I know I know im just begin little ironic. doesnt that open in a new window... it does. I need to change the screen im in. Because of the popup killers i cant use window.open
fredmv
12-11-2003, 05:35 PM
Pop-up killers generally only block unrequested pop-up windows, so it shouldn't be a problem. However, I don't believe what you're trying to do is possible. To modify the browser chrome (scrollbars, toolbars, etc.) you must open a new window (the only exception is with some certain Mozilla/Netscape functions, which is irrelavant since channelmode is an IE-only feature).
drewex
12-11-2003, 05:41 PM
Googles popup killer gets all my popups i have actually set it not to do that for my site but i dont want my users to have the same problem. You are using it in <A> object maybee that will work if i do it in a submit button will it work.