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>"; Quote 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>"; Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.