SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2003
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Submit button opening in iframe

    hi,
    ive got a poll on my site and i would like when people vote for the results to pop up in a window. this is already done and works fine when they vote but the same page that opens in the popup also opens in my main iframe where all content is displayed. is it possible to make the code only open in the popup and leave the content in the iframe intact? here is the code for the submit button i have:

    <input type="submit" value="Vote!" name="B1"onClick="MM_openBrWindow('db/pollmentorres.asp?p=aspcode.net','CurrentResults','scrollbars=yes,width=400,height=300')" >


    and the open browser window script although im sure nothing is wrong with this:
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>


    thanks in advance
    Last edited by Genesis12; Feb 14, 2003 at 12:33.

  2. #2
    SitePoint Addict
    Join Date
    May 2000
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might try changing from a submit button to a "button" button.


Bookmarks

Posting Permissions

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