SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    do righteous deeds
    Join Date
    Aug 2006
    Location
    Türkiye Turkey تركيى
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I write two onclick ?

    Can I write two onclick ?
    <input onclick="return confirm('&#199;ıkmak istiyormusunuz ')" onclick="window.location='logout.asp';"
    Code:
     
    <input onclick="return confirm('&#199;ıkmak istiyormusunuz ')" onclick="window.location='logout.asp';" type="button" value="&#199;ıkış" style="cursor:hand; background='#efefef';" onmouseover="this.style.background='#ffffff';" onmouseout="this.style.background='#efefef';" name="uyemiz_logout">&nbsp; &nbsp; &nbsp;</td>

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    No, you have to put those in the same one:
    Code:
    <input onclick="return confirm('&#199;ıkmak istiyormusunuz '); window.location='logout.asp';" type="button" value="&#199;ıkış" style="cursor:hand; background='#efefef';" onmouseover="this.style.background='#ffffff';" onmouseout="this.style.background='#efefef';" name="uyemiz_logout">&nbsp; &nbsp; &nbsp;</td>

  3. #3
    do righteous deeds
    Join Date
    Aug 2006
    Location
    Türkiye Turkey تركيى
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. Now I have no doubt about it.

  4. #4
    SitePoint Enthusiast
    Join Date
    May 2006
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you have more complex task you can call some function on onclick event

    onclick="myFunction();"

  5. #5
    do righteous deeds
    Join Date
    Aug 2006
    Location
    Türkiye Turkey تركيى
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help.
    This does, what I want:
    Code:
     
    <input onclick="if(confirm('&#199;ıkmak istiyor musunuz? ')) location='logout.asp' " type="button" value="&#199;ıkış" style="cursor:hand; background='#efefef';" onmouseover="this.style.background='#ffffff';" onmouseout="this.style.background='#efefef';" name="uyemiz_logout">


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
  •