Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dreamweaver and JavaScript problem

Status
Not open for further replies.

Theuniqueme

Programmer
Aug 23, 2001
3
GB
Hi all,

I am trying to put some JavaScript code in a page by doing Insert < Invisible Tags < Script. The JavaScript is inserted in the page but when I test the page in the browser it gives me errors. I know there are no problems with the script because when I create an HTML page manually with the JavaScript code in it, it works fine.

The thing is I want to have the JavaScript code in the page by using Dreamweaver so I can keep the same interface that the rest of my pages have.

Any help, comments, suggestions would be really appreciated.

Many thanks.
 
Hello Theuniqueme!

Make sure that DW inserts JS code before you call it. When you use feature Insert JC script it's inserted where your curos is. So put cursor at the very beginning of the page and then insert code. But if you use JS script that is called in BODY onLoad you will need to move your code upper manually.

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top