Portal Home > Knowledgebase > Articles Database > How to cause an IFrame link to open into a new window?
How to cause an IFrame link to open into a new window?
Posted by robertk1, 03-12-2008, 02:25 PM |
Hi
Here is my code, what do I add to make this open in a new window instead of trying to open inside the little iframe?
target="_blank" doesn't help.
Thanks for any help!
|
Posted by Burhan, 03-12-2008, 02:41 PM |
You need to use javascript to launch a new window with window.open()
You can also google 'ajax thickbox' to get another way around the problem.
|
Posted by Domainitor, 03-12-2008, 03:01 PM |
If you're opening a new window, why use IFRAME? Perhaps a simple
|
Posted by robertk1, 03-12-2008, 03:07 PM |
Thanks for pointing me in the right direction!
|
Posted by robertk1, 03-12-2008, 03:09 PM |
Inside the window is a formmail box for data entry. Unfortunately the resulting page is too big for the template.
Thanks!
|
Posted by BluewaveHosted, 03-12-2008, 03:52 PM |
target="_top" does the trick.
|
Posted by robertk1, 03-12-2008, 04:04 PM |
Doesn't work, I tried that. See
http://bestallstarlimo.com/Links.htm
|
Posted by bl9000, 12-30-2009, 02:12 AM |
okay, I am having the same problem, but now I am thinking that using iframes may not be the solution. I am just trying to put a request more information section on the side of my primary information of my home page, and I want it to be on the side. But, without an iframe it goes on the bottom. I like the request more information part in an iframe because I like the thankyou page to pop up in the same window. But, as for the rest of my home page it really annoys me having the links stay in the iframe....
so what other ways can I constrain the size of the rest of my home page content, and just keep one iframe... Or how do I use Java Script to allow my src links to pop up in new windows?? please help.
|
Posted by addcomex, 12-30-2009, 05:31 AM |
New Window Links on Pages
To have a link open in it's own window so people won't be leaving your site, follow these directions:
A normal link looks like this:
Link Name
To have the link open in a new window add this:
Link Name
Predefined targets are:
_blank
Loads the page into a new browser window.
_self
Loads the page into the current window.
_parent
Loads the page into the frame that is superior to the frame the hyperlink is in.
_top
Cancels all frames, and loads in full browser window.
"name"
You can also use any name for a target and it will load a page into a new window.
<>
Last edited by bear; 12-30-2009 at 09:43 AM.
|
Posted by BluewaveHosted, 12-30-2009, 05:36 AM |
yes, the Link text here code is what you need.
|
Posted by respite, 12-31-2009, 12:37 PM |
Clearly nobody is reading the main point of the thread... In order to limit the size you need Javascript.
Noticed Moderator Edited Post Here... But missed the SPAM!
|
Posted by oliviakitty, 12-31-2009, 02:36 PM |
Don't use iFrames?
I know, right? *laughs*
|
Add to Favourites Print this Article
Also Read