tag:blogger.com,1999:blog-6850494433925139616.post4699569102835760926..comments2022-11-08T20:12:49.485+05:30Comments on Java Fanatics: Href Vs onClick : Anchor tagDinesh Vadiveluhttp://www.blogger.com/profile/14126033252271988360noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6850494433925139616.post-24859360170623806422007-02-17T02:54:00.000+05:302007-02-17T02:54:00.000+05:30Dev,Sorry for making things complicated.Here it go...Dev,<BR/>Sorry for making things complicated.<BR/><BR/>Here it goes..<BR/><BR/>buttons.js<BR/>-----------<BR/>function addPopupBtn(title, href, image, nam){<BR/> document.write('<A>' + stmt + ' href="'+href+'">....+'</A>'); <BR/>}<BR/><BR/>fileOne.html<BR/>----------<BR/><BR/>addPopupBtn("Test", "javascript:callMeOne()","","test");<BR/>//Clicking the popup button would call the function callMeOneDinesh Vadiveluhttps://www.blogger.com/profile/14126033252271988360noreply@blogger.comtag:blogger.com,1999:blog-6850494433925139616.post-25394958828744180232007-02-16T09:31:00.000+05:302007-02-16T09:31:00.000+05:30oge..Is it so?Post the exact code.Let me check wha...oge..Is it so?<BR/>Post the exact code.Let me check what u r trying to dobloggerhttps://www.blogger.com/profile/02607493098781989843noreply@blogger.comtag:blogger.com,1999:blog-6850494433925139616.post-58783041946995489132007-02-13T05:47:00.000+05:302007-02-13T05:47:00.000+05:30Dev,Thanks for Thinking Thin!The question was why ...Dev,<BR/>Thanks for Thinking Thin!<BR/>The question was why it fails when this function was called from a popup...!<BR/><BR/>lemme b more clear, try to invoke this function from a popup and u could see href='someFunction' failing miserably. That is the browser(IE version 6) did not pick up this function when called from a popup..!<BR/><BR/>Keep Thinking Thin.Dinesh Vadiveluhttps://www.blogger.com/profile/14126033252271988360noreply@blogger.comtag:blogger.com,1999:blog-6850494433925139616.post-26399319073408846122007-02-13T00:34:00.000+05:302007-02-13T00:34:00.000+05:30I could not understand what you are trying to do.A...I could not understand what you are trying to do.<BR/>As per my understanding href="someURL" takes you to a new page/URL since it is a hyper link.<BR/>I believe that in order to keep the user continue in the current page (avoid navigating to next one), and open a pop up screen you are trying to use<BR/>href="#" and onclick="somefunction()".<BR/>Assume that the client's browser doesn't support bloggerhttps://www.blogger.com/profile/02607493098781989843noreply@blogger.com