View Single Post
  #1 (permalink)  
Old March 28th, 2007, 05:54 AM
woojtii woojtii is offline
Authorized User
 
Join Date: Jun 2006
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default JScripts on ASP.NET Master page?

Hello,


I have a problem to use JScript (I can't use JavaScript) on ASP.NET masterpage.

when I use this script on ordinary ASP.NET page, it works ok.

How can I use script like this on master page?

<Script for="window" event="onload" language="jscript">

if(window.form.txtSomeTextBox.value == "")
{
 window.form.txtSomeTextBox.focus();
}
</Script>

Thanks!


Wojtek