• 2022-06-19
    点击页面的按钮,使之打开一个新窗口,加载一个网页,以下JavaScript代码中可行的是( )
    A: <input type="button" value="new"onclick="open('new.html', '_blank') "/>
    B: <input type="button" value="new"onclick="window.location='new.html';"/>
    C: <input type="button" value="new"onclick=" location.assign('new.html');"/>
    D: <form target="_blank" action="new.html"><input type="submit" value="new"/></form>
  • 举一反三