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 6821713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:34:38+00:00 2026-05-26T21:34:38+00:00

The following is a theoretical question, that I hope someone will be able to

  • 0

The following is a theoretical question, that I hope someone will be able to provide with an answer.

I’ve explored a bit and found that the following is very (dangerously) possible:

$('#link').click(function() {
    window.location = 'http://www.malicious-example.com';
    return false;
});

As seen in this live example.


Now I may not be very sharp at JavaScript, but this seems like a gigantic security hole, I mean, the browser thinks and shows (in the bottom) that the link is indeed going to http://google.com, when it will eventually lead to http://www.malicious-example.com.

Does anyone have any information of this issue? Are there measures taken to take care of it?

  • 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-26T21:34:38+00:00Added an answer on May 26, 2026 at 9:34 pm

    There is not much that can be done about it and to be honest I hardly see the concern. Barely visiting a webpage can rarely be harmful and if a site was to do that, why not simply redirect the user as soon as the page loads?

    There used to be some issues with JavaScript, mainly related to alerts and the ability to cancel a page change, but most proper browsers have dealth with them in various ways. For example, if two alerts are made very quickly you will have the option of turning off all further alerts, and browsers now detect if the page is attempting to stop the user from leaving and will output their own message.

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

Sidebar

Related Questions

I've got the following theoretical problem. I'd like to be able to create multiple
A Purely theoretical question on Tcl. Following this question I was thinking on what
I understand that this question may seem somewhat ungrounded, but if someone knows anything
a theoretical question. After reading Armstrongs 'programming erlang' book I was wondering the following:
first of all: my question is very theoretical. Even if I post an example,
I have a theoretical question concerning how to deal with the following scenario in
This is a completely theoretical question. Suppose the following code: >>> class C: ...
Time for a theoretical question I just ran across. The following code is valid
I am interested in theoretical Big-O analysis of the following MySQL query: SELECT id,
Following code takes like 2500 milliseconds on an i7-*3.4 GHz windows-7 64-bit computer 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.