Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-23-2002, 02:06 PM   #1
BrettJ
ol' timer
 
Industry Role:
Join Date: Jan 2001
Location: Seattle WA
Posts: 4,715
html target help appreciated

i want to open all links off of one page into a new window.

right now i'm using target="_base"

but I would really like to open all the links into the same window. And better yet i would like that new window to be opened up in a certain location on the surfers monitor. Possible? what would the new code be?
BrettJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2002, 03:20 PM   #2
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
window.open("the url","anyname","width=800,height=600,top=1,left=1" )

in a link it would like <a href=javascript:window.open(("the url","anyname","width=800,height=600,top=1,left=1" )>text</a>

does not work with earlie browser.


keep the anyname the same...to keep loading the pages in the same window
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2002, 03:24 PM   #3
Steve
Confirmed User
 
Join Date: Feb 2001
Location: USA
Posts: 6,894
use target="new" and all the links will continue to open in that same window, instead of a brand new blank browser window.
I think you can just do that with a BASE TARGET="_new" in the HEAD section, too


put his in the head section

script
!--
function openScript(url, width, height) {
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,status=no' );
}
//--
/script

with <> around the script parts
and add this to the anchor tags a href

javascript:openScript('put the URL here',500,720)

replace the height and width dimesions with whatever you need them to be
Steve is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2002, 06:52 PM   #4
BrettJ
ol' timer
 
Industry Role:
Join Date: Jan 2001
Location: Seattle WA
Posts: 4,715
So i have to put the - - javascript:openScript - in each link's a href that I want to open in a specific location??
BrettJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.