Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a keyboard shortcut for Google Chrome that lets you reload a frame (iframe) that has focus? The only way I've found to do it is via right click.

Pressing F-5 while the frame has focus (e.g. while actively in a form element) reloads the entire parent page or does nothing, depending on where the focus lies within the frame. I'm hoping to avoid that, as I'm debugging a rather massive form that is loaded in an iframe.

Update:

  • Version: Chrome 16.0.912.75 (I love those version numbers) Anyway, stable.
  • OS: Windows 7 and XP.
share|improve this question

closed as too localized by Tim Post, Ivo Flipse Jan 10 '12 at 21:46

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Is it possible to open the iframe content in a new tab? –  Daniel Beck Jan 10 '12 at 19:24
    
Which operating system? I ask, because AutoHotkey is perfect for this kind of thing on Windows. –  iglvzx Jan 10 '12 at 19:25
    
Are you able to use e.g. Safari instead? I solved it with Safari... but Chrome apparently has bugs related to reloading iframes. –  Daniel Beck Jan 10 '12 at 19:46
    
I'm hoping for something cross-OS, however I'm using the stable version on XP and Windows 7 currently. I'll happily accept an answer that says 'no' with a link and summary of a bug report, I can't be the only one wondering about this :) –  Tim Post Jan 10 '12 at 20:36
1  
In case someone needs it: In Safari, you can use the bookmarklet javascript:(function(){x=document.activeElement;if(x.tagName=="IFRAME"){x=x.con‌​tentWindow;x.location.reload();}})();. I'm afraid a bug prevents this from working in Chrome though. –  Daniel Beck Jan 10 '12 at 21:11
show 3 more comments

1 Answer

up vote 2 down vote accepted

No. There's no shortcut because the browser needs to know what frame to reload. You can right-click inside the iFrame and select Reload frame from the context menu.

There's also a suggestion to program a mouse gesture for this purpose but it's for Firefox. You can check out Chrome extensions for mouse gestures.

share|improve this answer
    
document.activeElement gives you the iframe from the parent document or a bookmarklet, if its content is focused. –  Daniel Beck Jan 10 '12 at 21:12
    
Any suggestions for an extension that might suit the problem? They are, after all, a rather vast sea :) –  Tim Post Jan 10 '12 at 21:20
    
So you're suggesting to create a bookmark containing JS that will work the following way: user clicks inside an iFrame -> user clicks on the bookmark. How's that different from right-click the iFrame -> click Reload frame? –  dnbrv Jan 10 '12 at 21:22
    
@TimPost: There's no way to do it without a mouse and in fewer than 2 steps because of the DOM. Even an extension needs to know what the active iFrame is. –  dnbrv Jan 10 '12 at 21:24
    
@dnbrv Extensions can use local storage, which is why I asked. I don't mind telling an extension what ID I'm scoping if I can just tab through it later. –  Tim Post Jan 10 '12 at 21:38
show 1 more comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.