![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
ol' timer
Industry Role:
Join Date: Jan 2001
Location: Seattle WA
Posts: 4,715
|
![]() 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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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??
|
![]() |
![]() ![]() ![]() ![]() ![]() |