Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling JavaScript func from .aspx page
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00845243
Message ID:
00845265
Vues:
12
This message has been marked as the solution to the initial question of the thread.
Check your case. You have "PopWindow" in the anchor tag's script but "popWindow" as the function name.

Try:
<a href="javascript:popWindow()">Pop New Window</a>
>I am having a problem calling a simple JS function from the ASP.NET page.
>
>The HEAD section of the page has code:
>
>
><script type="text/javascript" language="JavaScript">
>function popWindow() {
>		
>test = window.open("test.htm","","width=300,height=250")
>		}
></script>
>
>
>The FORM section of the page has code:
>
>
><a href="javascript:PopWindow()">Pop New Window</a>
>
>
>But when I run the form and click on the link, I get error "Object Expected".
>
>What am I missing?
>
>TIA.
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform