JavaScript替换当前页面的方法

时间:2020-12-12 20:12:44
【文件属性】:
文件名称:JavaScript替换当前页面的方法
文件大小:21KB
文件格式:PDF
更新时间:2020-12-12 20:12:44
c html代码 ip 本文实例讲述了JavaScript替换当前页面的方法。分享给大家供大家参考。具体如下: 下面的JS代码可以替换当前页面为指定的URL <!DOCTYPE html> <html> <head> [removed] function replaceDoc() { [removed].replace("//www.jb51.net") } [removed] </head> <body> <input type="button" value="Replace document" onclick="replaceDoc()"> </body> </html> 希望本文所述对大家的java

网友评论