Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trying to click on an link and open a new window

Status
Not open for further replies.

kackey21

Technical User
Feb 24, 2001
2
US
Ok, so I want to be able to click on a link and then have the page open in a new window. Now, I know how to do that with dreamweaver, but what I really want to know is how to make that window "clean", meaning I dont want the real-estate of my monitor to be all cluttered with a browsers interface. I know you can do it, but I cant figure out how you can do it with Dreamweaver.
Any help would be greatly appreciated

Thanks in advance!
 
I have a custom set of script that i use whick is much cleaner that the DW code
if u want i will post it

regards Unicorn11
abhishek@tripmedia.com

[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]
 
The simplest way is to simply apply a behavior to it. You can choose to open a url with a new browser and you can set it so it opens as just a window without all the 'stuff'
 
I have been trying to do this as well. I am using Dreamweaver 4 and have not been able to figure out why I cannot get a link to open a new browser window 'onClick'.

In fact, the very first place I looked was in 'behavior'. I notice that when I select 'open a new browser window' it does not give me the option for 'onClick' ..it just gives me 'onMouseOver'.

any help is appreciated!
thnx. I HATE BEING A NEWBIE!
-grumpy smurf
 
I ended up using behaviors to do it. It work ok, most of the time but I do find that it does some freaky stuff now and then when you click on the link. would like to hear more about your special script that you use unicorn11. Thanks to all that responded.
 
/******************/

this script function goes into the head

<script LANGUAGE=&quot;JavaScript&quot;>
function desc(name){
game=window.open (name,&quot;&quot;,&quot;width=525,height=440,resizable=0,location=0,status=0,menubar=0,scrollbars=yes&quot;)
}

</script>


/******************/

open window
is goes in the a href link where you want to open a window of a certain paramitter and size

Javascript:desc('replace this text the html file you want to open')


/******************/
this goes into the a href of the close window in the child window

close script

Javascript:close('game')


// hope his helps
Regards
Unicorn11
abhishek@tripmedia.com

[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top