gpt4 book ai didi

html - CKeditor - html Onclick 属性不起作用

转载 作者:行者123 更新时间:2023-11-27 23:32:21 25 4
gpt4 key购买 nike

我正在使用下面的代码在新窗口中打开谷歌,但在 CKeditor 中这不起作用。

<div align="center"><button onclick="window.open('http://google.com','_self')">Click here to open <b> google </b> 
</button></div>

最佳答案

将_self改为_blank

    <div align="center"><button onclick="window.open('http://google.com','_blank')">Click here to open <b> google </b>
</button></div>

这应该有效。

关于html - CKeditor - html Onclick 属性不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35220058/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com