Execute Javascript method from browser address bar - GWT

后端 未结 2 1275
情歌与酒
情歌与酒 2021-02-05 13:12

I\'m trying to execute Javascript on my web application by executing this on the browser URL/address bar:

javascript:window.alert(\'test\');void(0);
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 14:10

    You can write your javascript code inside the block like this

    javascript:{alert("ok");}
    

提交回复
热议问题