ballhogjoni Posted May 9, 2007 Share Posted May 9, 2007 Can someone help me with this? For some reason the javascript button is not showing when you run this in IE. echo "<a href=\"leads.php\">Back to Fresh Leads</a>"; echo "<div align=\"center\">"; echo "<script language=\"Javascript1.2\">"; echo "var message = \"Print this Lead\";"; echo "function printpage() { window.print(); }"; echo "document.write(<form><input type=button +value=\"+message+\" onClick=\"printpage()\"></form>);"; echo "</script>"; echo "</div>"; Link to comment https://forums.phpfreaks.com/topic/50655-solved-javascript-nested-in-php/ Share on other sites More sharing options...
trq Posted May 9, 2007 Share Posted May 9, 2007 echo "<a href=\"leads.php\">Back to Fresh Leads</a>"; echo "<div align=\"center\">"; echo "<script language=\"Javascript1.2\">"; echo "var message = \"Print this Lead\";"; echo "function printpage() { window.print(); }"; echo "document.write('<form><input type=\"button\" value=\"' + message + '\" onClick=\"printpage()\"></form>');"; echo "</script>"; echo "</div>"; Link to comment https://forums.phpfreaks.com/topic/50655-solved-javascript-nested-in-php/#findComment-248987 Share on other sites More sharing options...
ballhogjoni Posted May 9, 2007 Author Share Posted May 9, 2007 Thx thorpe Link to comment https://forums.phpfreaks.com/topic/50655-solved-javascript-nested-in-php/#findComment-249004 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.