Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Pop up window - which is going to load when my index page is loading

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pop up window - which is going to load when my index page is loading

    Hello ,
    i want to make pop up window - which is going to load automatically when the visitors go to my index page. i have this code which is working but is working ONLY when the visitor click on image. i need to change that function so to make it automatically runs.

    my code is this one:

    <script language="JavaScript" type="text/JavaScript">
    <!--
    function wimpyPopPlayer(theFile,id,stuff) {
      window.open(theFile,id,stuff);
    }
    //-->
    </script>
    <a href="javascript:;" onClick="wimpyPopPlayer('http://vyzakos.webs.com/main.swf','wimpyMP3player','width=801,height=501')"><img src="http://vyzakos.webs.com/main.swf" border="0" align="top" onload="wimpyPopPlayer('http://vyzakos.webs.com/main.swf','wimpyMP3player','width=801,height=501')"></a>

    i guess i must replace onClick... but i dont know is i am right.
    Thank you


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Pop up window - which is going to load when my index page is loading

    These are java forums, and java != javascript. You might try your luck on a javascript dedicated forum. I've since moved your thread to the Other Programming Languages section

Similar Threads

  1. Replies: 2
    Last Post: August 27th, 2012, 09:19 PM
  2. confirmation pop up, help!
    By jamesy23 in forum Other Programming Languages
    Replies: 2
    Last Post: June 3rd, 2012, 07:58 AM
  3. Replies: 1
    Last Post: December 17th, 2011, 03:32 AM
  4. How to Grab the HTML source code of a website URL index page?
    By JavaPF in forum Java Networking Tutorials
    Replies: 6
    Last Post: April 22nd, 2010, 02:46 PM