I have several pages that a user can either submit or skip using a regular submit input. All of my content resides inside an iframe of my client (which resides inside another iframe on their containing page). When a user cycles through my content, I'm trying to get the client's browser The outermost scrollbar) to scroll to the top of the page.
I've tried various thing like on my pages like:
<input name="Submit" type="submit" value="submit" onclick="parent.parent.window.location='#anchor';"/>
and even:
<body onload="parent.parent.window.scroll(0,0);">
but I'm getting a JS error that reads, "uncaught exception permission denied to call method Location.tostring"
I'm pretty sure it's because of some sort of cross domain scripting security in the browser.
Is there anyway around this? Anything else I can try? The client is willing to let us add any scripts we need to our content...they just don't want to modify any of their pages.
Thanks
Rick
I've tried various thing like on my pages like:
<input name="Submit" type="submit" value="submit" onclick="parent.parent.window.location='#anchor';"/>
and even:
<body onload="parent.parent.window.scroll(0,0);">
but I'm getting a JS error that reads, "uncaught exception permission denied to call method Location.tostring"
I'm pretty sure it's because of some sort of cross domain scripting security in the browser.
Is there anyway around this? Anything else I can try? The client is willing to let us add any scripts we need to our content...they just don't want to modify any of their pages.
Thanks
Rick