Javascript location.replace and iframe -


following program can work in chrome, in firefox not work, need refresh page, otherwise page blank!

the firefox jump out of store window use iframe not work, there ways around this?

thanks all!

var url = "/card/"+dl_path; saveframe.document.location.replace(url);  <iframe id="saveframe" style="display: none"></iframe> 

if use jquery, can use $('#saveframe').attr('src', url). should work browsers.


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -