SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Button Problem

  1. #1
    SitePoint Member
    Join Date
    May 2002
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wink Button Problem

    Hi there!
    I am using dreamweaver.
    I have a rollover button.
    I want to add a "exit" function on that button.
    That is,
    "If a user clicked on that button, the page would be closed by the user..."
    What could I do with that?

    Cheers,

  2. #2
    Rehab is for quiters! spartan's Avatar
    Join Date
    Apr 2002
    Location
    Cape Town, South Africa
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    window.close

    and now I must go, before I voice my opinion about dreamweaver rollovers...
    Spartan
    ---------------------
    It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.
    -Mr.Payne

  3. #3
    SitePoint Member
    Join Date
    May 2002
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <a href="javascript:window.close()">

    Don't forget to place your border and alt tags respectively.

  4. #4
    Rehab is for quiters! spartan's Avatar
    Join Date
    Apr 2002
    Location
    Cape Town, South Africa
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <a href="javascript:window.close()">
    or...
    <a href="vbscript:window.close">
    or...do it on the onclick event... onclick="window.close"

    I believe that in javascript you could also use self.close

    not shure if there is a difference (anybody?)
    Last edited by spartan; May 6, 2002 at 06:51.
    Spartan
    ---------------------
    It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.
    -Mr.Payne


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
  •