• http://slashback.org/ Tim

    The only problem I have with this code is that it relies on Javascript to work.

    Generally it’s bad to statically assign a javascript action to a link. If someone with javascript disabled clicked the link, nothing would happen. Javascript is meant to make the page more convenient without destroying functionality for non-javascript users.

    It’s not too hard to create a piece of php code that would do the same thing, and it doesn’t force the client to have any special settings. If you wanted to change it so it opens a popup for the link, you can add a DOM script to the page that would change the link href when the page is loaded.

  • http://slashback.org Tim

    The only problem I have with this code is that it relies on Javascript to work.

    Generally it’s bad to statically assign a javascript action to a link. If someone with javascript disabled clicked the link, nothing would happen. Javascript is meant to make the page more convenient without destroying functionality for non-javascript users.

    It’s not too hard to create a piece of php code that would do the same thing, and it doesn’t force the client to have any special settings. If you wanted to change it so it opens a popup for the link, you can add a DOM script to the page that would change the link href when the page is loaded.


Top

Popular

Information Security / Technology

Politics

Philosophy & Religion

Technology & Science

Culture & Society

Miscellaneous

Arguments

Projects

Collections

Twitter

What I'm Reading

Favorite Books and Essays

Top Blog Categories

Inputs