10 examples of 'reload iframe' in JavaScript

Every line of 'reload iframe' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
36function reloadIframe(id) {
37 document.getElementById(id).contentWindow.location.reload();
38}
89function iframe_reload() {
90 var iframe = document.getElementsByTagName('iframe')[0];
91
92 ractive.set('iframe_set_offset', true);
93 iframe.contentWindow.location.reload(true);
94}
24function reloadIframe () {
25 $("#iframe_view" ).attr( "src", function ( i, val ) { return val; });
26}
140function closeIframeReload() {
141 //刷新父页面
142 window.parent.location.reload();//这个方法会发生页面重载,IE6下面会出现刷新弹窗。
143 window.parent.ymPrompt.doHandler("close",true);
144}
97async reload() {
98
99 await this[_tab_].reload();
100
101 await this.waitForNavigation();
102}
22public async reload(): Promise {
23 await this.waitForNavigation(page.evaluate('location.reload()'));
24}
110function reload() {
111 const script = "mdViewer_reload()"
112 getMainWindow(mainWindow).webContents.executeJavaScript(script)
113}
46function reload(win) {
47 if (process.env.NODE_ENV === 'development') {
48 win.loadURL(`file://${__dirname}/../app/index.html`);
49 } else {
50 win.loadURL(`file://${__dirname}/app/index.html`);
51 }
52}
90function reloadPageImpl() {
91 // Hide everything (on entire page, not only $entryPoint)
92 if (nvl(options.clearBody, true)) {
93 $('body').html('');
94 }
95
96 // Reload window (using setTimeout, to overcome drawing issues in IE)
97 setTimeout(function() {
98 if (options.redirectUrl) {
99 window.location.href = options.redirectUrl;
100 } else {
101 window.location.reload();
102 }
103 });
104}
221export function reloadBrowser(url) {
222 if (url) {
223 global.location.href = url;
224 } else {
225 global.location.reload();
226 }
227}

Related snippets