Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: How to get Undo/Redo to work in iframe


Message #1 by "Kenny Heimbuch" <kennyheimbuch@h...> on Wed, 6 Nov 2002 17:00:28
Hello all,
my big mystery is this;

I am trying to get undo/redo to work in an iframe (text editor); 
I have tried: 
function Undo()
{
iView.document.execCommand('undo', false, null);
}
called by:
onclick="undo(this)">
"iView" being the name of iframe.

What else is funny about this, is that I am using the 
ActiveX 'commonDialog' functions which show the open/saveAs windows, and 
this allows the shortcut keys ctrl+a,x,c,v to work, but not the ctrl+z,y 
which are, of course the elusive 'undo/redo'.

Many thanks in advance,
Kenny

  Return to Index