Execute javascript on button click

J

JJ

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.
 
E

Egil Hogholt

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.egilh.com/
 

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

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top