Help! Can't seem to post JavaScript within HEAD tags
I'm new to JavaScript. I've been going thru the tutorials on pageresource.com and following the exercises, I'm Using FronPage Express as my HTML editor. Here's the problem, I write the JAvaScript within <HEAD> and </HEAD>, save the page, then try to view it within my browser, and it doesn't work. I then view the source and find that the JavaScript has been re-written with in the <BODY> tags. It's driving me nuts, please help,,,I really want to get over this hump.
Tom Knight posted this at 19:50 — 14th January 2000.
They have: 48 posts
Joined: Dec 1999
Some html editors have a mind of their own and completely change the code which you've speant ages writing, the best thing to do is use a plain text editor like notepad to write your pages, if you prefer using FP, then save the file without the JS in, then open the html file in notepad and add the JS in the head section, then save it, this should work.
------------------
Do you want to have fun?
TomWorld
Do you want to have fun?
TomWorld
Vincent Puglia posted this at 01:14 — 15th January 2000.
They have: 634 posts
Joined: Dec 1999
Hi,
I use FPXpress for my wysiswyging, so I know what you mean. Save it, open it with Notepad, and move the head & body tags.
BTW: do not write any inline dHTML with xpress. Itwill chew it up and spit it out, leaving you with a DIV tag but no inline style attributes.
If you like, get GlobalScape's cuteHTML (it's free). Between the 3 (FPXpress, Notepad, and cuteHTML) you'll have an excellent editor(s) for no cost.
Vinny GrassBlade: cut&paste javascript
Where the world once stood
the blades of grass cut me still
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.