我想打開一個彈出窗口onclick事件的按鈕和鏈接。所有工作正常,但它會打開一個空白窗口,當頁面loads.I不需要它加載,我只需要點擊彈出。有誰能夠幫助我? 我的代碼如下:Javascript popup,html,php
function OpenWin()
{
window.open('../test.php','test','width=500,height=300,scrollbars=1');
return false;
}
這種情況的HTML是:
<input type="text" name="tst" value="<?php echo $editData['somefield'];?>"/> <a href='#' onClick="javascript:return OpenWin();">Test</a> <input type="button" value="Test" onClick="return OpenWin();">
請從您的html代碼中發佈更多內容。 – reporter 2011-05-06 12:38:43
沒有別的這個彈出。只有給定的html是 – user321038 2011-05-06 12:42:22
如果其中一個答案有幫助,請點擊複選框。 – 2011-06-13 01:16:36