1

已成功在本站使用脚本添加独立窗口。它没有滚动条。我如何添加它们。脚本是:

<a href="#"
onClick="window.open(
  'popup.php?message=<?php echo $Url; ?>',
  'myWindow', 
  'status = 1, height = 350, width = 1022, resizable = 0'
)"
class="bstyle">
  E
</a>

如果您能提供帮助将不胜感激。问候艾伦布朗

4

2 回答 2

3

您需要添加scrollbars = 1到的第三个参数window.open

<a href="#"
onClick="window.open(
  'popup.php?message=<?php echo $Url; ?>',
  'myWindow', 
  'status = 1, height = 350, width = 1022, resizable = 0, scrollbars = 1'
)"
class="bstyle">
  E
</a>
于 2012-07-20T15:22:39.570 回答
1

Add scrollbars=1 in call

<a href="#" onClick="window.open('popup.php?message=<?php echo $Url; ?>', 'myWindow', 'status=1,height=350,width=1022,resizable=0,scrollbars=1' )" class="bstyle">E</a>

于 2012-07-20T15:23:50.900 回答