Hack Forums
HTML help onclick="startGateway('XXXXXX');" - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50)
+---- Thread: HTML help onclick="startGateway('XXXXXX');" (/showthread.php?tid=4679370)



HTML help onclick="startGateway('XXXXXX');" - Warren Buffett. - Feb 10, 2015

Alright guys I have been using a template since a while now on my blog for CPA and I wanted to change a bit of code but I have a little problem.
My current code is:
Code
<a class="btn_big" href="http://www.ultrapay.org/link.php?id=1128" style="-webkit-box-shadow: rgb(0, 114, 178) 0px -4px inset; background-color: #0077d4; background-image: linear-gradient(to top, rgb(0, 92, 191), rgb(0, 110, 212)); border-bottom-color: rgb(0, 61, 153); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-bottom-width: 1px; border-style: none none solid; border-top-left-radius: 4px; border-top-right-radius: 4px; box-shadow: rgb(0, 71, 178) 0px -4px inset; color: white; display: inline-block; font-size: 22px; height: 60px; line-height: 60px; margin: 0px; padding: 0px 30px; text-shadow: rgb(0, 87, 155) 0px 1px; text-transform: uppercase; width: 200px; zoom: 1;">DOWNLOAD</a>
But I don't want it to follow the link
Quote:http://www.ultrapay.org/link.php?id=1128

but instead open up the widget
Quote:onclick="startGateway('XXXXXX');"

and yes I have edited in "head" with
Quote:<script type="text/javascript" src="http://fileice.net/gateway/mygate.php?id=5075446a476a43426b774132514e383d"></script>

If anyone here could help me that would be truly great 🤝
PS:Yeah, I don't code


* - Crypto™ - Feb 10, 2015

There are a couple different ways.

1:

Code
onclick="event.preventDefault();startGateway('XXXXXX');"

2:

Code
onclick="startGateway('XXXXXX');return false;"



* - Warren Buffett. - Feb 10, 2015

(Feb 10, 2015 01:16 PM)Crypto™ Wrote:  There are a couple different ways.

1:

Code
onclick="event.preventDefault();startGateway('XXXXXX');"

2:

Code
onclick="startGateway('XXXXXX');return false;"
I was going to rep you mate but it didn't work for me, here's what they say I have to do 😭 :
[Image: c0q5kJM.png]


* - Crypto™ - Feb 10, 2015

(Feb 10, 2015 01:29 PM)100ZeroGravity Wrote:  I was going to rep you mate but it didn't work for me, here's what they say I have to do 😭 :
-snip-

If you use an image or a button, it should just work. If you use a link, those should both work. Actually, if you're using a link, try doing this instead:

Code
<a href="javascript:startGateway('XXXXXX');">Click</a>

Demo


* - Warren Buffett. - Feb 10, 2015

(Feb 10, 2015 02:49 PM)Crypto™ Wrote:  If you use an image or a button, it should just work. If you use a link, those should both work. Actually, if you're using a link, try doing this instead:

Code
<a href="javascript:startGateway('XXXXXX');">Click</a>

Demo

Ok idk it doesn't work, maybe I'm too tired. But I gave found this on the file ice forum
[Image: gUWNwsC.png]