Accessing javascript from menu

D

Dana

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"
DynamicHorizontalOffset="2">
<Items>
<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>
<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>
</asp:MenuItem>
</Items>
</asp:Menu>
</form>

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top