Simple Javascript iframe Q

December 21, 2010 at 14:51:41
Specs: Windows 7
I have a inline frame webpage.
There's a function on the main page:
function jumpScroll() {
window.frames['framename'].scroll(0,500);
}

It is activated by a button:
<input type="button" onClick="jumpScroll()" value="Scroll Page">

However, it only works when the iframe is pointing to a local page, if I set the iframe source to google.com for example, it doesn't do anything.
Please help. Thanks!


See More: Simple Javascript iframe Q

Report •


#1
December 25, 2010 at 18:52:57
Apparently the browser restricts the functions when connecting to an external domain.

Report •

#2
December 26, 2010 at 12:03:51

Report •

Related Solutions


Ask Question