javascript change iframe src and reloadjavascript change iframe src and reload

javascript change iframe src and reload javascript change iframe src and reload

Having said that, I know it's not the cleanest thing in the world, but it works for my purposes. This method has been tried, but still can't refresh the page. How about saving the world? Have you considered appending to the url a meaningless query string parameter? To change iframe src with JavaScript, we set the src property of the iframe element. I can send the payload, but it opens on the server site of the payload post. With some additional code that you could have added in. if you have parameter send to your iframe then do it as following. Full code: document.addEventListener("DOMContentLoaded", function(){ var mainParameter = location.search.split('test=')[1]; var iframeSrcValue = document.getElementById("MyFrame").src; var combined = iframeSrcValue + mainParameter; alert(mainParameter); }); Hi Jacob,I'm trying to achieve almost exactly the same goal as Magnor Maxi did above, i.e dynamically change iframe src by website url.I was able to get this far:

the script produces the full url I need but I don't know how to make that url be the iframe srcI don't have any knowledge in coding what so ever, thus would greatly appreciate any assistance.thanks and keep safe, I'm trying to have the reply from a website embed in a page. The src attribute specifies the URL of the document to show in an iframe. Is it possible to control it remotely? I would like to calculate an interesting integral, Tikz: Numbering vertices of regular a-sided Polygon. I'll post an answer after finding the solution I came up with about a year or so ago the code is on github. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. 565), Improving the copy in the close modal and post notices - 2023 edition, New blog post from our CEO Prashanth: Community is the future of AI. Required fields are marked *. If you wrap your