| You are here: DEVPPL ‹ Forum ‹ Programming ‹ HTML Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
frameset problem
6 posts
• Page 1 of 1
0
frameset problem
hello there...
i have a system which uses frameset to view another html page, lets say a.html ..
this a.html is actually an excel file which has been saved as html..in this file, I have made a list of movie title. once a user click on the title, it will open the movie's poster in a pdf file format.
my problem is that, once the user click on the movie title (in a.html), it will open the pdf file in the same page as the a.html is..i want it to open in a different tab ; 1 tab is used to view the movie title, and another tab is to view the poster in pdf file.
is there any ways to do this?
i have a system which uses frameset to view another html page, lets say a.html ..
this a.html is actually an excel file which has been saved as html..in this file, I have made a list of movie title. once a user click on the title, it will open the movie's poster in a pdf file format.
my problem is that, once the user click on the movie title (in a.html), it will open the pdf file in the same page as the a.html is..i want it to open in a different tab ; 1 tab is used to view the movie title, and another tab is to view the poster in pdf file.
is there any ways to do this?
- Sandalvincci
- Reputation: 0
- Posts: 1
- Joined: Mon Sep 06, 2010 2:44 am
- Highscores: 0
- Arcade winning challenges: 0
0
Re: frameset problem
I will recommend you to visit HTML fieldset tag to see how it works, will help you and try again.
- Pep
- Reputation: 0
- Posts: 7
- Joined: Wed Dec 01, 2010 3:11 pm
- Highscores: 0
- Arcade winning challenges: 0
0
Re: frameset problem
you have to look in the code of the excell file or whatever.
find the link to the pdf in the code
and change add/change the target of the link to
"_blank"
for example
find the link to the pdf in the code
and change add/change the target of the link to
"_blank"
for example
- Code: Select all
<a href="http://google.ca" target="_blank">google.ca</a>
- HotNoob
- Reputation: 0
- Posts: 169
- Joined: Sun May 02, 2010 2:38 am
- Highscores: 0
- Arcade winning challenges: 0
0
Re: frameset problem
Or put there some javascript code and handle onclick event on links. Use window.open and this method provides more flexibility than just adding target="_blank" to links.
- Paolo
- Reputation: 0
- Posts: 12
- Joined: Fri Dec 10, 2010 12:30 pm
- Highscores: 0
- Arcade winning challenges: 0
0
Re: frameset problem
paolo1 wrote:Or put there some javascript code and handle onclick event on links. Use window.open and this method provides more flexibility than just adding target="_blank" to links.
window.open doesnt provide more flexibility because there are still users who do not have javascript enabled on their browsers.
plus, when you ctrl + click the link, some browsers will bug out and open a new empty tab.
- HotNoob
- Reputation: 0
- Posts: 169
- Joined: Sun May 02, 2010 2:38 am
- Highscores: 0
- Arcade winning challenges: 0
0
Re: frameset problem
HotNoob wrote:there are still users who do not have javascript enabled on their browsers.
Oh it's sad.. Anyway I've started to learn javascript lately so I just wanted to give some advise...
- Paolo
- Reputation: 0
- Posts: 12
- Joined: Fri Dec 10, 2010 12:30 pm
- Highscores: 0
- Arcade winning challenges: 0
|
|