I'd like to open this link as a popup box:
<a href="/upload/" onclick="window.open(this.href, 'windowName', 'width=500, height=350, left=24, top=24, scrollbars, resizable'); return false;">Upload pic</a>
Currently, it opens in a window, but what I want is a bare popub box instead. How to do so using js or jQuery?
Update:
The link is inside a form group and using iframe, as suggested by many here, causes the form to submit (not sure why though). So I look for a non-iframe solution.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…