Talk:HtmlLinks

From WeBWorK_wiki
Revision as of 10:26, 4 May 2008 by Sam (talk | contribs) (New page: == More flexible JS popup == DOCUMENT(); loadMacros('PGstandard.pl'); $url = alias('test.html'); $target = ''; $options = 'height=625,width=600,location=no,menubar=no,status=no,'...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

More flexible JS popup

DOCUMENT();

loadMacros('PGstandard.pl');

$url = alias('test.html');
$target = ;
$options = 'height=625,width=600,location=no,menubar=no,status=no,'
        .'resizable=yes,scrollbars=yes,toolbar=no';
$link = "javascript:window.open('$url','$target','$options').focus()";
$name = 'Calculator';

BEGIN_TEXT
\{ htmlLink($link, $name) \}
END_TEXT

ENDDOCUMENT();

This should go in a macro -- htmlLink_popup maybe?