Void [SOLVED]

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Void [SOLVED]

Post by s.dot »

Code: Select all

<a href="javascript: void;" onClick="doShow('val');">View Link</a>
I'm pretty sure this is quite simple, but this gives me a javascript error. It works, but the error Syntax Error shows in the javascript console.

I can't use # because it triggers one of my mod rewrites unless I put the full script path/name and query string.

So what's the correct way to do javascript: void; ?
Last edited by s.dot on Wed Apr 19, 2006 12:17 pm, edited 1 time in total.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

<a href="javascript: void(0);" onClick="doShow('val');">View Link</a>
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Ah, yes. That did the trick.

Many thanks, JCart.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply