/    Sign up×
Community /Pin to ProfileBookmark

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

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@fredmvDec 11.2003 — I don't believe that's possible. How would you like someone sending an [b]ALT + F4[/b] key sequence to you?
Copy linkTweet thisAlerts:
@drewexauthorDec 11.2003 — thats easy window.close but there should be a way to get the page to channel mode with out opening new window
Copy linkTweet thisAlerts:
@fredmvDec 11.2003 — [i]Originally posted by drewex [/i]

[B]thats easy window.close but there should be a way to get the page to channel mode with out opening new window [/B][/QUOTE]

Sure, you could use the [font=courier]close[/font] method, but does pressing [b]ALT + F4[/b] 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.
Copy linkTweet thisAlerts:
@drewexauthorDec 11.2003 — you can close the window [B]WITH OUT[/B] confirmation there is a way to do that but the idea isnt that it is getting fullscreen here.
Copy linkTweet thisAlerts:
@fredmvDec 11.2003 — 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>
Copy linkTweet thisAlerts:
@drewexauthorDec 11.2003 — 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
Copy linkTweet thisAlerts:
@fredmvDec 11.2003 — Pop-up killers generally only block [i]unrequested[/i] 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).
Copy linkTweet thisAlerts:
@drewexauthorDec 11.2003 — 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.
×

Success!

Help @drewex spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...