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

How to open a new pop-up window

Status
Not open for further replies.

anywhereigo

Technical User
Nov 22, 2001
24
0
0
CA
I want to have new small pop-up window when a user clicks on a specific text or image instead having to open a new browser window.

Am gonna use this method as a Help function to, say for example, display a short definition of a certain word.
Instead of redirecting the user to my FAQ section, this pop-up screen is more convenient for the user without leaving the current page being viewed.

I tried the Behaviour actions but the options are greyed out and not available?

Any help would be will be much appreciated.

Rob
 
<script LANGUAGE=&quot;JavaScript&quot;>
<!--
function PopUp(FileURL,width,height) {
// Workaround for Navigator 6
windowOptions = &quot;directories=0,menubar=0,personalbar=0,status=0,resizable=1,width=&quot;
windowOptions += width + &quot;,height=&quot; + height
window.open(FileURL,&quot;nav6workaround&quot;,windowOptions)
}
//-->
</script>


<a href=&quot;javascript:popUp('helpfile.htm',500,300)&quot;>Help</a>

Do you need more info about this script? You can use this more than once on one page!

HTH,

Quasibobo
*** Don't eat yellow snow! ***
 
From the DreamWeaver site

Issue[\b]
The desired event is not listed in the Events menu when a behavior is applied.

Reason[\b]
Not all events are recognized in all browsers, and most events can only be applied to certain tags. Dreamweaver helps you create browser-compliant code by listing only the events available for a selected browser or group of browsers. If the desired event is not supported in the selected browser(s), it will not be available in the Show Events For menu. This prevents the use of events that are not supported in the desired browser(s).

Solution[\b]
When applying behaviors, make sure to select the desired target browser(s) in the Show Events For menu. Dreamweaver will list all events that can be received in the selected browser(s). To choose from a list of Events that are compatible with more than one browser, choose an inclusive option such as &quot;4.0 and above browsers&quot;. Choosing a more specific option may result in pages that fail in other browsers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top