By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,504 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,504 IT Pros & Developers. It's quick & easy.

Opening a new window with a specific page in the iframe

P: 1
I have a website where the main body of the site changes where the pages are loaded into an iframe. I need to be able to click a link in another website and have it open a new window, load a new webpage and have a specific page load in the iframe. The iframe name is MainFrame

I have tried several differant ways from opening a new window with Java script to the below attempt.
href="http://www.websiteB.com?page2.html" target="_Self"

Any help would be greately appreciated.

Marc
Apr 3 '08 #1
Share this Question
Share on Google+
1 Reply


nomad
Expert 100+
P: 664
I have a website where the main body of the site changes where the pages are loaded into an iframe. I need to be able to click a link in another website and have it open a new window, load a new webpage and have a specific page load in the iframe. The iframe name is MainFrame

I have tried several differant ways from opening a new window with Java script to the below attempt.
href="http://www.websiteB.com?page2.html" target="_Self"

Any help would be greately appreciated.

Marc
What you need to do is have an achor point in that Iframe.
[HTML]<a name="abc"> [/HTML]

then on your link you would do this
[HTML]href=http://www.websiteB.com?page2.html#abc target="_blank"[/HTML]

hope this helps
nomad
Apr 3 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.