scrupul0us Posted April 19, 2006 Share Posted April 19, 2006 im getting the following error:htmlfile: Unknown runtime erroron this code:[code]function letterhead(mode){ if (mode=='off') { html_header = document.getElementById("form_header").innerHTML; html_footer = document.getElementById("form_footer").innerHTML; document.getElementById("form_header").innerHTML = "<div style=\"height:1.75in; width: 7.5px;\"></div>"; document.getElementById("form_footer").innerHTML = "<div style=\"height:1in; width: 7.5px;\"></div>"; document.getElementById("letterheadmode").innerHTML = "<a href=\"#\" onclick=\"letterhead('on')\">Add Letterhead</a>"; } if (mode=='on') { document.getElementById("form_header").innerHTML = html_header; document.getElementById("form_footer").innerHTML = html_footer; document.getElementById("letterheadmode").innerHTML = "<a href=\"#\" onclick=\"letterhead('off')\">Remove Letterhead</a>"; }}[/code]on:[code]document.getElementById("form_header").innerHTML = "<div style=\"height:1.75in; width: 7.5px;\"></div>";[/code] Link to comment https://forums.phpfreaks.com/topic/7801-htmlfile-uknown-runtime-error/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.