2 Replies - 669 Views - Last Post: 13 April 2013 - 06:53 AM

#1 sharkhead  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 09-April 13

iframes links different method?

Posted 13 April 2013 - 04:44 AM

Hey guys,
So started with iFrames. Works like a charm.
But till i was getting a hold of it, i encountered first drawback!
I made the whole navbar as a single frame, and linked the frame to the index. Now when i click for homepage, the page get opened in the frame itself!
Obviously this should happen. Thats what iFrames do. But as for my need, i cant do that. So i took some help of our uncle Google, and on one forum i found out this-
target="_blank"
which we have to put in the link syntax. With help of this, a new tab/window is opened upon clicking it and the iFrame remains the same. This could work. But majority of website viewers would find this very irritating. I mean who'll like every time to switch between tabs/windows?
So is there a syntax for opening the link on the same page by just getting it reloaded. Just like our normal links which open in a same tab/window?

Ps. I'll post the screenshots if needed.
/shark

Is This A Good Question/Topic? 0
  • +

Replies To: iframes links different method?

#2 andrewsw  Icon User is offline

  • It's just been revoked!
  • member icon

Reputation: 3806
  • View blog
  • Posts: 13,488
  • Joined: 12-December 12

Re: iframes links different method?

Posted 13 April 2013 - 05:01 AM

Quote

_blank Opens the linked document in a new window or tab
_self Opens the linked document in the same frame as it was clicked (this is default)
_parent Opens the linked document in the parent frame
_top Opens the linked document in the full body of the window

Was This Post Helpful? 1
  • +
  • -

#3 sharkhead  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 09-April 13

Re: iframes links different method?

Posted 13 April 2013 - 06:53 AM

View Postandrewsw, on 13 April 2013 - 05:01 AM, said:

Quote

_blank Opens the linked document in a new window or tab
_self Opens the linked document in the same frame as it was clicked (this is default)
_parent Opens the linked document in the parent frame
_top Opens the linked document in the full body of the window

Lovely! Thanks a ton!!
Using the
_parent
syntax!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1