Results 1 to 6 of 6
  1. #1

    Default HELP: Popup script


    libog ko unsa i search sa google gd mao naglisod ko pangitaa

    ang akong site nga gihimo ron naa newsletter subscription option

    makapagawas ko sa subscription option inig load sa site sa browser

    naa mo sample code diha para mogawas ra ang popup sa subscription once i close ang browser?

    lamats!

    libog ko sa term gamiton para i search sa google gd

  2. #2
    If you're using javascript you can use the window.onbeforeunload event like this:
    Code:
    <html> 
    <head>
    <title></title>
    </head>
    
    <body onbeforeunload="alert('Goodbye my titser, goodbye ...');">
    </body> 
    </html>
    pwede i connect nimo siya to a javascript function.

  3. #3
    C.I.A. jEiiWhO08's Avatar
    Join Date
    May 2009
    Gender
    Male
    Posts
    2,671
    Blog Entries
    1
    <html>
    <script>alert("HELLO WORLD");</script>
    </html>


    pwd nana xa basta pop.up. hehe!!

  4. #4
    Quote Originally Posted by kolz View Post
    If you're using javascript you can use the window.onbeforeunload event like this:
    Code:
    <html> 
    <head>
    <title></title>
    </head>
    
    <body onbeforeunload="alert('Goodbye my titser, goodbye ...');">
    </body> 
    </html>
    pwede i connect nimo siya to a javascript function.
    naay crossbrowser nga method ani bossing? kay dili man gud ni mogana sa netscape.

  5. #5
    this should do the trick:
    Code:
    <HTML>
    <head>
    <script>
    function closeIt()
    {
      return "Any string value here forces a dialog box to \n" + 
             "appear before closing the window.";
    }
    window.onbeforeunload = closeIt;
    </script>
    </head>
    <body>
      <a href="http://www.microsoft.com">Click here to navigate to 
          www.microsoft.com</a>
    </body>
    </html>

  6. #6
    Quote Originally Posted by hizuka007 View Post
    naay crossbrowser nga method ani bossing? kay dili man gud ni mogana sa netscape.
    Naa man siguro ang event sa Netscape brod (last time I checked). Tried the routines in firefox and it worked. The only browser siguro that will not support it is Opera (since wala na siyay onbeforeunload event). I have not tried it against Chrome or others.

  7.    Advertisement

Similar Threads

 
  1. visual basic script help!!
    By pg_zland in forum Programming
    Replies: 5
    Last Post: 07-18-2008, 04:53 PM
  2. need help how to turn on java script
    By megatedxzx in forum Software & Games (Old)
    Replies: 5
    Last Post: 06-17-2008, 08:28 AM
  3. YM Problem...script error.pls help
    By DigiBoy in forum Software & Games (Old)
    Replies: 8
    Last Post: 05-05-2008, 08:55 PM
  4. MOVED: YM Problem...script error.pls help
    By vern in forum Networking & Internet
    Replies: 0
    Last Post: 05-05-2008, 03:43 PM
  5. pls help:unihomepg.com sige ug popup
    By BIOSMAN in forum Computer Hardware
    Replies: 1
    Last Post: 12-06-2007, 01:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top