Forum Moderators: open
here's my code:
<script language="javascript">
function popupJoke(title, joke) {
var w = window.open('',title,'width=500,height=500,scrollbars=yes,resizable=yes');
var d = w.document;
d.write('<html><head><title>Dkicks Jokes</title></head><body bgcolor=#FFFFFF>Dkicks / Jokes / ' + title + '<p align="center"><font face="Courier" size="50">' + title + '</font><br><br>' + joke + '<br><FONT SIZE="2" FACE="Verdana,Arial,Helvetica,sans-serif"><a HREF="javascript: self.close()">Close Window</a></font></p></body></html>');
d.close();
w.focus();
}
</script>
Body:
<a href="javascript: popupJoke('Little Johnny's Wish', 'Little Johnny came home from school one day and went<br>
by his mom's room. The door was open...')">Little Johnny's Wish</a>
[edited by: DrDoc at 2:55 am (utc) on Jan. 4, 2005]
<script language="javascript">
function popupJoke(titl, titl2, joke) {
var w = window.open('about:blank',titl2,'width=500,height=500,scrollbars=yes,resizable=yes');
var d = w.document;
d.write('<html><head><title>Dkicks Jokes</title></head><body bgcolor=#FFFFFF>Dkicks / Jokes / ' + titl + '<p align="center"><font face="Courier" size="50">' + titl + '</font><br><br>' + joke + '<br><FONT SIZE="2" FACE="Verdana,Arial,Helvetica,sans-serif"><a HREF="javascript: self.close()">Close Window</a></font></p></body></html>');
w.focus();
}
</script><BODY>
<a href="javascript:void(0)" onClick="popupJoke('Little Johnny\'s Wish', 'LitJohn', 'Little Johnny came home from school one day and went<br> by his mom\'s room...')">Launch Joke</a>
All your numbered HTML entities should be like \|