I have a webpage with an IFrame and a Button, once the button is pressed I need the IFrame to be refreshed. Is this possible, if so how? I searched and could not find any answers.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
You can use this:
Js:
Html:
JS Fiddle : https://jsfiddle.net/wpb20vzx/
You can use this simple method
Works for IE, Mozzila, Chrome
Got this from here
2017:
If it in on same domain just :
will work.
provided the iframe is loaded from the same domain, you can do this, which makes a little more sense: