Results 1 to 9 of 9
-
13th Apr 2010, 04:38 PM #1OPMemberWebsite's:
maxneeds.info2 functions 1 onclick ?
Hi !
I am coming with a question again
I use onclick="this.onclick=function(){return false;}"
And it works for me ... But what about if i want another function for onclick ?
I tried onclick="this.onclick=function(){return false;};this.title=TEST"
to change the title,but doesn't works. Also tried onclick="this.onclick=function(){return false;this.title=TEST;};" but this time does not work the first function too...
Any suggestions.Porsche_maniak Reviewed by Porsche_maniak on . 2 functions 1 onclick ? Hi ! I am coming with a question again :D I use onclick="this.onclick=function(){return false;}" And it works for me ... But what about if i want another function for onclick ? I tried onclick="this.onclick=function(){return false;};this.title=TEST" to change the title,but doesn't works. Also tried onclick="this.onclick=function(){return false;this.title=TEST;};" but this time does not work the first function too... Any suggestions. Rating: 5
-
13th Apr 2010, 04:55 PM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comonnclick="this.onclick=function()"
function () {
first_function();
second_function();
}
first_function() {
do something
}
second_function() {
do something
}
-
13th Apr 2010, 05:06 PM #3OPMemberWebsite's:
maxneeds.infoI've tried this and it does not works in my example.. Other ways ?
Thanks anyway
-
13th Apr 2010, 05:16 PM #4Respected DeveloperWebsite's:
PlatinumW.org NexusDDL.com HD-United.org CheckLinks.org FLVD.orgHow about using unobtrusive js for a change?
Current projects:
Megaupload Premium Multifetch Script | FF Plugin: Tinypic and Imagevenue Image Remoter
Projects in hiatus:
IPB Linkchecker Bot | VB Linkchecker Bot
-
13th Apr 2010, 06:17 PM #5OPMemberWebsite's:
maxneeds.infoYou mean by getelementbyid ?
And maybe the thing i am trying to do is ..
if clicked once => change title
-
14th Apr 2010, 07:16 PM #6OPMemberWebsite's:
maxneeds.infoI am searching for other solution but now php problem comes out.
I must useCode:echo ('<iframe onload="alert('Thank Added !')" frameborder=0 scrolling=no width=0 height=0 name=thanks></iframe>"');
-
14th Apr 2010, 07:25 PM #7MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comecho ('<iframe onload="alert(\'Thank Added !\')" frameborder=0 scrolling=no width=0 height=0 name=thanks></iframe>"');
-
14th Apr 2010, 07:38 PM #8OPMemberWebsite's:
maxneeds.infoThanks you are godlike
-
14th Apr 2010, 07:58 PM #9(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comGenerally onclick javascript is just annoying unless it is really needed, i think thats also what dman meant.
Like a lot of sites use it to create popups, ads, etc.
Though it has been used in (badly coded?) scripts to execute ajax requests.Projects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
(VB6) Using functions
By JasonCairns in forum Web Development AreaReplies: 0Last Post: 10th Jan 2012, 01:10 PM -
[For Hire] PHP Functions
By _Vick in forum Completed TransactionsReplies: 0Last Post: 3rd Dec 2011, 10:28 AM -
(help) Onclick=PopUnder
By xtremex in forum Technical Help Desk SupportReplies: 0Last Post: 26th Sep 2011, 04:04 AM -
Onclick, display hidden script
By AlexXxuTzZu in forum Web Development AreaReplies: 1Last Post: 20th Aug 2011, 08:53 PM -
onclick open on the same tab
By Hillside in forum Technical Help Desk SupportReplies: 1Last Post: 18th Mar 2011, 11:21 PM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...