How to add target=“_blank” to JavaScript [removed]?

后端 未结 4 778
渐次进展
渐次进展 2020-11-28 03:05

The following sets the target to _blank:

if (key == \"smk\") {
    window.location = \"http://www.smkproduction.eu5.org\";
    target = \"_blank         


        
4条回答
  •  隐瞒了意图╮
    2020-11-28 03:41

    Just use in your if (key=="smk")

    if (key=="smk") { window.open('http://www.smkproduction.eu5.org','_blank'); }
    

提交回复
热议问题