[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

Execute javascript on button click

JJ

2/27/2006 5:43:00 PM

In a ASP.NET 1.1 Mobile Form, I want to execute a javascript call on a
button click.

How can I do that? I thought I could do:
cmdExit.CustomAttributes.Add("onclick","javascript:window.opener=self;window.close()");

But that seems to be ignored. Custom attributes are allowed in the
web.config file.


1 Answer

Egil Hogholt

4/13/2006 7:56:00 PM

0

JavaScript is not supported by most mobile clients.

Some of the latest wap 2.0 devices support a very limited set of JavaScript
functions but the concept of windows that can be opened and closed does not
exist.

Cheers,
Egil
http://www....
"JJ" <jj@nospam.com> wrote in message
news:OypJOV8OGHA.516@TK2MSFTNGP15.phx.gbl...
> In a ASP.NET 1.1 Mobile Form, I want to execute a javascript call on a
> button click.
>
> How can I do that? I thought I could do:
> cmdExit.CustomAttributes.Add("onclick","javascript:window.opener=self;window.close()");