Hello,

Does anyone know if it is possible to programmatically copy and paste
from a web page in iphone Safari?  I created a website that allows
copy and paste automation when viewing it from internet explorer,
however, it doesn't seem to work on iphone Safari.  For example, the
code to allow clipboard access via a web page on internet explorer is
as follows below: Does anyone know a way to modify it so that it will
work in iphone Safari with the 3gs?  Ultimately, I would like to
create a bookmarklet that navigates to a page and pastes the clipboard
that I have already copied from mail into a form text area box to save
some steps and time.  Thanks in advance! Shawn

<script type="text/javascript">
function CopyToClipboard()
{
   CopiedTxt = document.Form1.txtArea.createTextRange();
   CopiedTxt.execCommand("Copy");
}
function PasteFromClipboard()
{
   document.Form1.txtArea.focus();
   PastedText = document.Form1.txtArea.createTextRange();
   PastedText.execCommand("Paste");
}
</script>
<form name="Form1">
Select this text, copy it using the copy button, and paste it
below.<br /><br />
<textarea id="txtArea" cols="60" rows="5"></textarea>
<br />
<input type="button" onClick="CopyToClipboard()" value="Copy to
clipboard" />
<input type="button" onClick="PasteFromClipboard()" value="Paste from
clipboard" />
</form>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to