javascript help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gallerypost
    Confirmed User
    • Nov 2001
    • 711

    #1

    javascript help

    Hey guys.

    I got a site that i'm opening as a popup with an odd window size, without a way to resize it, i want to place on that site a button that when the user click on it it'll change the page properties to the max window site and etc... (like a regular ie window).

    Anyone can give me a sample how to do it ?

    Thanks.
  • sexyclicks
    Confirmed User
    • Mar 2002
    • 3240

    #2
    target="_new" ????

    Comment

    • Hind
      So Fucking Banned
      • Jul 2002
      • 384

      #3
      Sure i can, use this in the HEAD tag of the window as a javascript:

      ********
      function sendMe(url)
      {
      exit=false;
      width = self.screen.availWidth;
      height = self.screen.availHeight;
      window.open(url,"windows_name","width="+width+",he ight="+height+",top=0,left=0,directories=yes,locat ion=yes,menubar=yes,scrollbars=yes,status=yes,tool bar=yes,resizable=yes,maximize=null,outerHeight=0, outerWidth=0");
      window.close();
      }
      ********

      and this in the button as link:
      a href="javascript:void(0)" onClick="sendMe('http://www.blabla.com/')"


      let me know if worked for you.

      Comment

      • Hind
        So Fucking Banned
        • Jul 2002
        • 384

        #4
        Hey, it worked?

        Comment

        • dodo
          Confirmed User
          • Jan 2002
          • 162

          #5
          why not just href="javascript:sendMe('http://www.blabla.com/')"

          _
          FREE TRAFFIC TRADING on any host. Also try our 200% traffic back program.Click here
          We host the scripts for you so you trade on our bandwidth.

          Comment

          • Hind
            So Fucking Banned
            • Jul 2002
            • 384

            #6
            mmm, good point...

            Comment

            Working...