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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening new window

Status
Not open for further replies.

sedger

MIS
Sep 21, 2001
15
GB
I want to open a new window from a text link to an internal page. The "parent" is to be kepr open. No problem. But I want to control the size and position of the new window.

Are behaviours the only way to control the size and position of the spawned window. The problem with using a behaviour is that the linking text is not shown as a hypertext link ( with the cursor changing) and I do think that consistency accross the site would be good.

Ideally I'd like to create a "dechromed" look - is no scroll, borders or anything.

thanx in advance

its not waht you know that counts, its who knows you

 
Use behaviours and put a # sign in the link properties.

Cheech [Peace][Pipe]
The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Use java script using the window.open()

Example as follows:
<script Language=&quot;JavaScript&quot;>
function win() {
window.open(&quot;&quot;,&quot;&quot;,&quot;height= 200,width= 400,left=80 , top=80, toolbar=no, status=no, scrollbars=no, menubar=no, location=no, resizable=no &quot;);
}
// End -->
</script>

 
instead of # use javascript:;

or at the end of the onclick command put ; return: false [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Thanks to people who replied. Sorted the problem. Thanks again.

[flush3] - I shoulda known......

&quot;my god - i'm dialling beyond my means&quot; - Oscar Verywild

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top