Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 984009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:56:49+00:00 2026-05-16T04:56:49+00:00

I was going through a website I’ve taken over and came across this section

  • 0

I was going through a website I’ve taken over and came across this section in one of the pages:

<a href="javascript:window.location='<%=GetSignOutUrl()%>';">
  // img
</a>

Apparently anyone who has ever used the site without javascript would not be able to log out properly (surprisingly enough, this has never come up).

So the first thing that comes to mind is

<a href="<%=GetSignOutUrl()" onclick="javascript:window.location='<%=GetSignOutUrl()%>';">
   // img
</a>

Then I realized I don’t know why I’m keeping the javascript call around at all. I’m just a little confused as to why it would have been written like that in the first place when a regular link would have worked just fine. What benefit does window.location have over just a regular link?

This is also the only place in the website I’ve seen something like this done (so far).

Edit: The programmer before me was highly competent, which is actually why I was wondering if there was something I wasn’t taking into account or if he just made a simple oversight.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:56:49+00:00Added an answer on May 16, 2026 at 4:56 am

    There are three possibilites:

    1. The developer was trying to enforce Javascript use before sending the user along.
    2. The developer was trying to mask the href in the link. Perhaps this was so it wouldn’t be crawled effectively, or the status bar had something to do with it.
    3. The developer was a non-conformist.

    I would remove it and see if it breaks. But then again, I’m a conformist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today i was going through an website and found something over this iphone and
Going through some documentation on modifying CGImageRef data, I came across a strange example
While going through Effective C++ (by Scott Meyers), I came across the following code
I am going through a large website (1600+ pages) to make it pass Priority
Just going through the sample Scala code on Scala website, but encountered an annoying
Going through Javascript documentation, I found the following two functions on a Javascript object
I'm going through a tough decision (at least for me)... My website would have
So I am following this guide: http://technotes.1000lines.net/?p=23 and I am going through the steps.
I was going through the tutorial available on GWT website for StockWatcher application and
While going through one of our own projects, that other developer used rand() to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.