onload statements change when opening page as html

G

gaulinpr

Upgraded Frontpage from 2002 to 2003. Now when I open my
web site's index.htm page using "open as html" all unique
form names in my onload statements change to a single name.
For example all these lines
....onLoad="documents.backForm.newLocation.selectedIndex=0">
....onLoad="lit.backForm.newLocation.selectedIndex=0">
....onLoad="bcards.backForm.newLocation.selectedIndex=0">
change to
....onLoad="bcards.backForm.newLocation.selectedIndex=0">
for every instance. bcards is substiuted for ever unique
name. This does not happen if I open the document as text.
Is there some autocorrection going on that I can turn off?
 
S

Stefan B Rusynko

Do you have the 3 in one page or in 3 separate pages
- illegal html format if you have 3 separate onloads in one page
Should be:
...onLoad="documents.backForm.newLocation.selectedIndex=0;
lit.backForm.newLocation.selectedIndex=0;
bcards.backForm.newLocation.selectedIndex=0">

(all of above on 1 line)



| Upgraded Frontpage from 2002 to 2003. Now when I open my
| web site's index.htm page using "open as html" all unique
| form names in my onload statements change to a single name.
| For example all these lines
| ...onLoad="documents.backForm.newLocation.selectedIndex=0">
| ...onLoad="lit.backForm.newLocation.selectedIndex=0">
| ...onLoad="bcards.backForm.newLocation.selectedIndex=0">
| change to
| ...onLoad="bcards.backForm.newLocation.selectedIndex=0">
| for every instance. bcards is substiuted for ever unique
| name. This does not happen if I open the document as text.
| Is there some autocorrection going on that I can turn off?
 
G

gaulinpr

Thanks for your help I really appreciated it.
Yes they are all in the same document. I didn't know it
was illegal (I'm not a web master by any means)however it
works fine in its present state and we don't get any
errors using the multiple drop menus that are on that
page. Is there a better way to construct the drop down
menus with a single onload statement. I thought the name
after the onload syntax had to be unique and the same as
the name used in a form action line.
For example:
....onLoad="documents.backForm.newLocation.selectedIndex=0;
<FORM ACTION="gotoLocation.cgi" NAME="documentsForm">a

Thanks again.
 

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

Top