Results 1 to 2 of 2

Thread: Mac(IE and Safari): onClick does not work

  1. #1
    Mac(IE and Safari): onClick does not work
    Hi Everyone,

    This issue is driving me nuts!! I sincerely hope somebody helps me out with this. It's very Urgent!!

    The below code works fine with windows but not with Mac(IE and Safari).

    What I would like to do is, display a jsp on the click of a button after performing some validation.

    The body has the following:
    <body onload="MM_preloadImages('image1.gif','image2.gif' ,'image3.gif','image4.gif','image5.gif',' f')">
    <form id="form1" name="form1" method="post" target = "_blank" action="abc.jsp">
    <td rowspan="3" align="right"><a href="#" onClick="send();return false;"><img src="image1.gif" alt="Show" name="BTN" width="144" height="38" border="0" id="BTN" onMouseOver="MM_swapImage('BTN','','image1.gif',1) " onMouseOut="MM_swapImgRestore()"></a></td>

    The head contains the function:
    <script language="JavaScript" type="text/javascript">
    function send(){

    The problem here is that the send() function is not getting executed.
    Also, the onMouseOver and onMouseOut in the above case do not work
    I tried displaying an alert at the start of the send()function but it doesn't work.
    Does anyone has a clue to fix this issue?

    Eagerly waiting for your suggestions.

    Thanks in advance!

  2. #2
    have you checked it in firefox javascript debugger? that thing is like a god to me.

    but here is how I would do it.

    	<script type="text/javascript">
    	function send(){
    		<a href="javascript:void(0);" onclick="send();return false">hello</a>
    and it works in safari.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Does adguard - adblocker work on safari?
    By Domelo in forum macOS - Operating System
    Replies: 6
    Last Post: 05-07-2014, 08:10 AM
  2. safari wont work
    By gburge in forum macOS - Apps and Games
    Replies: 2
    Last Post: 04-13-2010, 10:57 AM
  3. Safari upload doesn't work
    By Mlindsay in forum macOS - Apps and Games
    Replies: 5
    Last Post: 01-12-2010, 02:42 PM
  4. Problems getting a website to work on Safari!
    By thatguyovrthr in forum Web Design and Hosting
    Replies: 5
    Last Post: 01-28-2009, 08:59 PM
  5. safari 3 > safari 2 (uninstaller doesn't work)
    By hoheyt in forum macOS - Apps and Games
    Replies: 3
    Last Post: 06-16-2007, 07:40 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