Using a button:
<input value="submit"Using a link:
onclick="javascript:window.open
('NewPage.html', 'WindowName',
'width=450, height=350, top=100, left=100, toolbar=0,
menubar=0,location=0,status=0,scrollbars=0,resizable=0');"
type="button">
<a href="#"The return:false; at the end keeps the link click from completing, so you can use a # as the link destination.
onclick="javascript:window.open
('NewPage.html','WindowName',
'width=450, height=350, top=100, left=100,
toolbar=0, menubar=0, location=0, status=0, scrollbars=0, resizable=0');
return:false;">New Window</a>
No comments:
Post a Comment