Welcome to WebmasterWorld Guest from 54.160.254.203

Forum Moderators: open

Message Too Old, No Replies

Dreamweaver template - Body tag to be editable

     

avp96

11:04 pm on May 7, 2006 (gmt 0)

Inactive Member
Account Expired

 
 


I have created a template in dreamweaver, which all works fine. The probelm is that on one page in my site I need to be able to edit the body tag to add an onload attribute. Rather than detaching the template from the page is there a way to make the body tab editable on every page?

I need to edit the "onload=" of the <body> tag in dreamweaver MX templated pages.

8:44 am on May 8, 2006 (gmt 0)

New User

5+ Year Member

joined:Mar 16, 2006
posts:3
votes: 0


in this case i think u should edit outsite dreamweaver fot tat page only otherwise just use java script for the 1st load?
9:55 pm on May 8, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 18, 2002
posts:355
votes: 0


You can make the onload attribute of the body tag editable (even though it's not in an editable region) by putting the cursor in the body tag, and choosing modify/template/make attribute editable.

DW will throw some code into the template, and the result is that when you go into a document based on the template, you can click modify/template properties, and set the appropriate action you want for onload.