How to open a new window when clicking a hyperlink?

后端 未结 6 1411
青春惊慌失措
青春惊慌失措 2020-12-18 13:37

I would like to open a new window with height of 600px and width of 200px, after clicking on a hyperlink.

How can I do that in HTML/Javascript?

Do I use some

6条回答
  •  误落风尘
    2020-12-18 14:08

    JavaScript is the best way of doing this

    var win = window.open(cant remeber this bit); win.resizeTo(w, h); win.focus();

提交回复
热议问题