File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes javascript:false Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript:false " Watch "javascript:false " New topic


Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2068
What is this code chunk doing? (or a strategy, etc.)?

I saw this in jquery ui source code if I am not wrong.>
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

It's creating a frame that doesn't have anything in it. Probably the author intends to set the actually source URL for the frame at runtime in JavaScript.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: javascript:false
It's not a secret anymore!