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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scripting object.style.pagebreakafter - can't get it working

Status
Not open for further replies.

aschl

Programmer
Aug 28, 2002
1
US
According to everything I have read, css2 allows
object.style.pageBreakAfter=&quot;&quot; to suppress the printing of, for example, header tags at the bottom of a page. I have tried putting the page-break-after style directly in a <h4> tag and have tried scripting it in both vbscript and in javascript. In the tag, it is just ignored. In the script, I get an &quot;object doesn't support this property or method ...&quot; error. And, when scripting, I changed the tag to a <div> and also to a <p> to try to make it work as I don't believe the scripting is supported with header tags.
Any ideas on how to make this work?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top