Jump to content
MakeWebGames

Recommended Posts

Posted
javascript:void(0) is used with the href attribute of the HTML <a> tag. Usually, clicking on a hyperlink reloads or redirects to another webpage. This may not be feasible every time. Many times, clicking a hyperlink requires performing some client side script operation instead of reloading or redirecting. This can be achieved by placing “javascript:void(0)” in the tag’s href attribute.

Example <a href="JavaScript:void(0);"ondblclick="alert('Good example!')">Example</a>

source

Okay, I understand how that works now. Thanks sniko

  • 1 year later...
  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

Posted
This is what I got

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

I'm gonna take a guess that the forum conversions have required the formatting, sadly I don't have this original source file anymore.

  • 3 weeks later...
  • 5 months later...
  • 2 months later...
Posted

This is not tested to work, I have fixed up your script [MENTION=70283]Samurai Legend[/MENTION] there was a couple of syntax issues, I have not done anything else except fix these, let me know if it workshttp://pastebin.com/GXft3LVd

Posted

This script is grim.

 

  • No code comments
  • Calling functions to echo output (strong believer of functions should only return)
  • The use of global.
  • Mixing PHP and Javascript
  • Multiple jQuery selectors instead of method chaining
  • Inline styling

[MENTION=70283]Samurai Legend[/MENTION] - look at your PHP error log and debug.

Posted
This script is grim.

  • No code comments
  • Calling functions to echo output (strong believer of functions should only return)
  • The use of global.
  • Mixing PHP and Javascript
  • Multiple jQuery selectors instead of method chaining
  • Inline styling

@Samurai Legend - look at your PHP error log and debug.

The beauty of my attempts at coding in 2010 :( makes me cry that I wrote this once upon a time.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...