Talk:HtmlLinks

From WeBWorK
(Difference between revisions)
Jump to: navigation, search
(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,'...)
 
(More flexible JS popup)
 
Line 6: Line 6:
 
   
 
   
 
  $url = alias('test.html');
 
  $url = alias('test.html');
  $target = '';
+
  $target = <nowiki>''</nowiki>;
 
  $options = 'height=625,width=600,location=no,menubar=no,status=no,'
 
  $options = 'height=625,width=600,location=no,menubar=no,status=no,'
 
         .'resizable=yes,scrollbars=yes,toolbar=no';
 
         .'resizable=yes,scrollbars=yes,toolbar=no';

Latest revision as of 16:21, 5 May 2008

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?

follow us