Hi everyone,
I'm working on trying to come up with a simple script to take out default text from a field when a user goes to click on it. the defaulted values I want to leave in to direct the user for the proper format of the text they are entering. So far this is what I have which works when I am editing frontpage on my own Windows 2000 Professional IIS 5.0 workstation but when i upload the page to the website, I keep getting a runtime error saying " 'document.Form.Field' is a null or not an object"
heres the code i have so far
<Script>
function Blank1() {
var blanktext = ""
document.NewUser.Phone1.value=blanktext
}
function Blank2() {
var blanktext = ""
document.NewUser.FAX.value=blanktext
}
function Blank3() {
var blanktext = ""
document.NewUser.Street.value=blanktext
}
function Blank4() {
var blanktext = ""
document.newuser.NewUser.City.value=blanktext
}
function Blank5() {
var blanktext = ""
document.NewUser.StateProvince.value=blanktext
}
function Blank6() {
var blanktext = ""
document.NewUser.Email.value=blanktext
}
</Script>
then for each field i have something similar to this
<input type="text" name="Street" size="25" tabindex="3" value="Street" Onclick=Blank3()>
i have an example up at
Any help appreciated
Thanks
------------------------------------------------
Kevin Karr
Network Administrator / WebMaster
CNE, MCP, A+
Jack Van Klaveren Ltd.
1894 Seventh St.
St. Catharines ON
Canada
(905) 641-5599 ext. 2328
Sales Service: 1-800-665-1642
Fax: (905) 684-6260
kkarr@jvk.net
I'm working on trying to come up with a simple script to take out default text from a field when a user goes to click on it. the defaulted values I want to leave in to direct the user for the proper format of the text they are entering. So far this is what I have which works when I am editing frontpage on my own Windows 2000 Professional IIS 5.0 workstation but when i upload the page to the website, I keep getting a runtime error saying " 'document.Form.Field' is a null or not an object"
heres the code i have so far
<Script>
function Blank1() {
var blanktext = ""
document.NewUser.Phone1.value=blanktext
}
function Blank2() {
var blanktext = ""
document.NewUser.FAX.value=blanktext
}
function Blank3() {
var blanktext = ""
document.NewUser.Street.value=blanktext
}
function Blank4() {
var blanktext = ""
document.newuser.NewUser.City.value=blanktext
}
function Blank5() {
var blanktext = ""
document.NewUser.StateProvince.value=blanktext
}
function Blank6() {
var blanktext = ""
document.NewUser.Email.value=blanktext
}
</Script>
then for each field i have something similar to this
<input type="text" name="Street" size="25" tabindex="3" value="Street" Onclick=Blank3()>
i have an example up at
Any help appreciated
Thanks
------------------------------------------------
Kevin Karr
Network Administrator / WebMaster
CNE, MCP, A+
Jack Van Klaveren Ltd.
1894 Seventh St.
St. Catharines ON
Canada
(905) 641-5599 ext. 2328
Sales Service: 1-800-665-1642
Fax: (905) 684-6260
kkarr@jvk.net