Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Break out of Iframe

Break out of Iframe

Reply
  #1 (permalink)  
Old 06-11-09, 11:06 AM
samdod samdod is offline
New Member
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Break out of Iframe

I am using an iframe to display an article page that is generated from php scripts and a database.

Is there a way to make every link displayed in the iframe target="_top" or _blank. so when they click on the link it will take them out of the iframe out of the site and to where the link goes?

thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-11-09, 07:39 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 757
Thanks: 0
Thanked 0 Times in 0 Posts
Yes it will require javascript. Google fore iframe break out javascript and you should be well on your way.
__________________
PHP AID -- Get PHP Help Live, or view our scripts, forums, resources, and more.
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-11-09, 09:03 PM
wirehopper's Avatar
wirehopper wirehopper is offline
Community Liaison
 
Join Date: Feb 2006
Posts: 1,562
Thanks: 2
Thanked 25 Times in 25 Posts
HTML Code:
<head>
<base target="_blank" />
<title>Title</title>
</head>
HTML base tag
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 06-16-09, 11:44 AM
Jillian2 Jillian2 is offline
New Member
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by samdod View Post
I am using an iframe to display an article page that is generated from php scripts and a database.

Is there a way to make every link displayed in the iframe target="_top" or _blank. so when they click on the link it will take them out of the iframe out of the site and to where the link goes?

thank you!
I am using an iframe to display an article page that is generated from php scripts and a database.

Is there a way to make every link displayed in the iframe target="_top" or _blank. so when they click on the link it will take them out of the iframe out of the site and to where the link goes?

thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
conversion of a keypad code to the responding characters davids5a C/C++ 0 08-03-07 03:08 AM
RSS Using RSS2Html Script VKX PHP 1 10-16-06 06:27 PM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 11:15 AM
Declared Functions skipper23 PHP 4 12-17-03 11:06 AM
index page not showing up skipper23 PHP 3 12-15-03 02:10 PM


All times are GMT -5. The time now is 05:14 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.