Solved

pop up window

Posted on 2000-04-24
2
202 Views
Last Modified: 2013-11-28
how to pop up a new window using javascript?
0
Comment
Question by:Graphico
2 Comments
 
LVL 7

Accepted Solution

by:
ssdesign earned 90 total points
Comment Utility
To open a new window using javascript give this action to the button that is going to pop up the window

On (Release)
      Get URL ("javascript:launchwin('yourpage.htm' , 'newwindow' , 'height=327,width=200')")
End On

and in the html page containing the movie add this command between the </title> and <head> tag

<SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1">  javascript_version = 1.1;</SCRIPT>


<SCRIPT LANGUAGE="JavaScript">

var newwin;

function launchwin(winurl,winname,winfeatures)
{
      //This launches a new window and then
      //focuses it if window.focus() is supported.
      newwin = window.open(winurl,winname,winfeatures);
      if(javascript_version > 1.0)
      {
            //delay a bit here because IE4 encounters errors
            //when trying to focus a recently opened window
             setTimeout('newwin.focus();',250);
      }
}
</SCRIPT>
0
 

Author Comment

by:Graphico
Comment Utility
Excellent answer ssdesign, thanks you were quick
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

On April 11th, 2011, Google’s next iteration of the Panda algorithm was rolled out to English language queries in the USA, and the original Panda update was rolled out to all English language queries from around the world.  This update caused  addit…
Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now