GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   html target help appreciated (https://gfy.com/showthread.php?t=57928)

BrettJ 04-23-2002 02:06 PM

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?

grumpy 04-23-2002 03:20 PM

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

Steve 04-23-2002 03:24 PM

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

BrettJ 04-23-2002 06:52 PM

So i have to put the - - javascript:openScript - in each link's a href that I want to open in a specific location??


All times are GMT -7. The time now is 04:40 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123