472,114 Members | 1,472 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,114 software developers and data experts.

Accessing javascript from menu

Hi All

I have a menu control on my page, something like:

<form action=Default.aspx runat="server">
<asp:Menu ID="Menu1" runat="server" BackColor="#F7F6F3"
<asp:MenuItem Text="File" Value="File" Selectable="False">
<asp:MenuItem Text="Open" Value="Open"></asp:MenuItem>
<asp:MenuItem Text="Print" Value="Print"></asp:MenuItem>
<asp:MenuItem Text="Edit" Value="Edit" Selectable="False">
<asp:MenuItem Text="Copy " Value="Copy"></asp:MenuItem>
<asp:MenuItem Text="Cut " Value="Cut"></asp:MenuItem>
<asp:MenuItem Text="Paste" Value="Paste"></asp:MenuItem>

and I also on the same menu some other items.

My question is this, when I click on the Copy, Cut or paste menus, I want to
copy cut or paste the text from a textarea on the page without posting date
back to the server, i.e. by accessing a javascript on the page when the menu
is clicked?

How can this be done?
Oct 16 '06 #1
0 1083

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Rob McLennan - ZETLAND | last post: by
4 posts views Thread by JesusFreak | last post: by
7 posts views Thread by Marci | last post: by
2 posts views Thread by Jackson Yap | last post: by
8 posts views Thread by chrisdude911 | last post: by
7 posts views Thread by simchajoy2000 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.