Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
45
rated 0 times [  50] [ 5]  / answers: 1 / hits: 56659  / 12 Years ago, wed, may 9, 2012, 12:00:00

I wish to make a link or button in a page that changes the page the iframe is on. It would be a local page:




idreesinc.com/iframe.html




and you can see what I have already here:




idreesinc.com/research




Help would be much appreciated as i have been looking for an answer for ages. Thanks!


More From » html

 Answers
27
<script>
function setURL(url){
document.getElementById('iframe').src = url;
}
</script>
<iframe id=iframe src=idreesinc.com/research.html />
<input type=button onclick=setURL('URLHere') />

[#85683] Tuesday, May 8, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tammyb

Total Points: 278
Total Questions: 101
Total Answers: 103

Location: Botswana
Member since Sat, Jan 7, 2023
1 Year ago
;