![]() |
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? |
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 |
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 |
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