iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old March 9th, 2008, 09:29 PM   #1
New Member
 

Join Date: Jan 2008
Location: Greece
Age: 31
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 onSPOT is on a distinguished road
how can have iframe links to open in a new window?

Hello!
We are in the middle of migrating our website and till then we need to have both versions on the home page.

So i made a simple index.hml
Half of the page will load in a iframe the old website and next to i ll get a new div where i ll put an image linked to the new homepage.

The thing is that when someone uses the iframe and he chooses a link i want that link to open to a new window instead of the small iframe i made.

The code i m using fro the iframe is this:

Code:
<style type="text/css">
<!--
body {
    
background-color#D40F87;
    
}

</
style></head>
<
body>
<
iframe 
src 
="http://www.myoldsite.com/"
height="754px"
width="340px"
scrolling="no"
>
</
iframe
See attached image to get a better view of what i m trying to do
Attached Images
File Type: jpg image.jpg (21.6 KB, 6 views)
onSPOT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 10th, 2008, 04:43 AM   #2
New Member
 

Join Date: Oct 2007
Location: Louth
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 pagerss is on a distinguished road
Re: how can have iframe links to open in a new window?

Hi Onspot,
I recommended you two opitions. From you parse here is not so clearly what is the problem.
But i will try to answer. You can use simple href with target=_blank. I do not see why will not work property. Other options is to use javascript window.open method. you can find descriptions on net. Like
http://www.javascript-coder.com/wind...dow-open.phtml
I hope that will help you
Good luck
pagerss is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


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

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do links in a frame open a new window? SpecialBrew HTML, XHTML and CSS 8 January 25th, 2008 04:50 AM
Change open in new window to open in same window nsr500rossi JavaScript 2 January 18th, 2008 10:13 AM
Need JavaScript for html links should open in a new window in the first time, after.. jayaramgussy JavaScript 0 June 19th, 2007 05:00 AM
open image in IFRAME instead of NEW WINDOW freshair JavaScript 0 May 4th, 2007 02:13 PM
Need to open ALL links in new window javascript JavaScript 4 August 4th, 2006 02:46 PM


Search Engine Optimization by vBSEO 3.2.0 RC8