View Full Version : Opening Links in New Target
Dazza203
12-31-03, 10:56 AM
If I wanted to open a link from an iframe but when I click the link it loads on the same page but out of the iframe, what would I put in the target property in the link property?
Thanks,
Darren
Try...
target="_self"
target="_new"
target="_parent"
to see what works best
target="_blank" is my fav.
rainydayproject
01-03-04, 05:10 PM
"_parent" should work
Xtremist
01-03-04, 10:05 PM
target="_blank" is what I use...
spikemeister
01-05-04, 04:53 PM
target="_blank" will open in a new window, i think the question was to replace the page currently displayed in the iframe. the post by mdhall should fix it for you
nakulgoyal
01-22-04, 06:47 PM
I vote for _blank
Kerrijo
01-31-04, 11:19 AM
I have another question regarding opening links in a new browser window. Using plain HTML is it possible to define the width and height of the new window? Also I have seen browser windows open without any of the usual browser buttons at the top. Does anyone have any tips on how to do this? Thanks very much,
Kerrijo
NeverMind
01-31-04, 12:42 PM
I have another question regarding opening links in a new browser window. Using plain HTML is it possible to define the width and height of the new window? Also I have seen browser windows open without any of the usual browser buttons at the top. Does anyone have any tips on how to do this? Thanks very much,
Kerrijo
this is what Javascript can do ,,
window.open("URL","name","features");
wanna know more ? check :
http://hotwired.lycos.com/webmonkey/98/03/index3a_page3.html
Kerrijo
01-31-04, 12:49 PM
I found a line I could add to my pages that opens a browser window with a set width and height. I needed this for a cartoon gallery. Here is the code I added for each cartoon:
< a href="http://www. web file or URL goes here"
target="_blank" onclick="window.open(this.href,this.target,'width=475,heigh t=350'); return
false;" title="" >
Take out the space after the first and last tag ends.
Found at:
http://www.metalusions.com/backstage/projects/smartwindows/
There is an online code generator for this but it didn't work for me until I cut and pasted the code into my pages.
Hope this can help someone else!
Kerrijo
Kerrijo
01-31-04, 12:51 PM
this is what Javascript can do ,,
window.open("URL","name","features");
wanna know more ? check :
http://hotwired.lycos.com/webmonkey/98/03/index3a_page3.html
Thanks NeverMind! I appreciate you taking the time to help me!
Kerrijo
Kerrijo
01-31-04, 01:23 PM
this is what Javascript can do ,,
window.open("URL","name","features");
wanna know more ? check :
http://hotwired.lycos.com/webmonkey/98/03/index3a_page3.html
One more question that those pages didn't help with. Tried searching on google but no luck. Right now when my new window pops up the title bar just has the file name. How do I input text in the string to generate a better title bar? Here is my page is you want to see:
http://www.kerrij.com/cartoons.html
There is a function in the new popup window line that says:
title=""
but when I input text there it didn't make any difference.
Thanks!
Kerrijo
NeverMind
02-01-04, 05:17 AM
you have to name the page you want it to be opened in the pop-up window not that title JavaScript uses because it's used in something internal in the browser !
meaning if 2 or more pop ups windows had the same title there wouldn't be new windows! but all of them will be in the already-opened window..
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.