Results 1 to 3 of 3

Thread: Javascript :: Popup Window-layout

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2003
    Location
    a place called home
    Posts
    64

    Javascript :: Popup Window-layout

    I created a popup window: This is the script:

    <SCRIPT language="JavaScript">
    <!--
    var mywin;

    function popup(title, data) {
    mywin = window.open(' ','Description','toolbar=no,status=no,menubar=no,sysmenu=no,caption=no,width=300,height=150,top=500, left=50');
    mywin.document.write('<HTML><HEAD><TITLE>Description: ');
    mywin.document.write(title);
    mywin.document.write('</TITLE></HEAD><BODY bgcolor="#EFEFEF">');
    mywin.document.write(data);
    mywin.document.write('</BODY></HTML>');
    }

    function shutdown() {
    mywin.document.close();
    mywin.close();
    }
    //-->
    </SCRIPT>


    my webpage (ColdFusion interacting with an Oracle 8.1.6 database), I use this script like this:

    <A HREF="glossaryForm.cfm" onmouseover="popup('#get_general_items.expression#','#get_general_items.def#');" onmouseout="shutdown();" class="noline">#gl_definition#</A>

    The script works but there are errors. If someone finds them please post a reply. The errors are: ')' expected, and this several times.

    And than there still is the layout of the popup. I want the user to see a popup whitout the closing buttons in the titlebar. How can I hide them?

  2. #2
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727
    you cant hide the title bar of a web page or get rid of the close button to my knowledge

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2003
    Location
    a place called home
    Posts
    64
    Thanks for answering. Do you see the fault in my code? I still need help with that issue to.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width