Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-26-2009, 02:40 AM   PM User | #1
neofite
New to the CF scene

 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
neofite is an unknown quantity at this point
Set #ref in iframe from another page

Is it possible to set an iframe to a Name'd anchor (e.g. name=#ref) from a different page?

Within the page I can:
Code:
document.getElementById('iframePM').src = hrefString;
with the #ref as a suffix. There wouldn't appear to be a way to manipulate the DOM link hash until after the page is loaded, so it can't be done from the page doing the navigation from. Is a session cookie the only way?

BTW, I'm only using an iframe because of the need to minimize expertise needed to load the monthly Word newsletter, which saved as a filtered HTML document - I then add the name=#ref etc. at the appropriate places. I also don't want/need to open a separate window containing the iframe.
neofite is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:46 PM.


Advertisement
Log in to turn off these ads.