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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:30:34+00:00 2026-05-28T23:30:34+00:00

I have a JavaScript link that is as follows: <a href=# onclick=window.open(‘TrackPackage.asp?track=235&ship=OTHER&ShippingMethod=1’, ”, ‘location=1,menubar=1,scrollbars=1,status=1,resizable=1,width=635,height=460’);

  • 0

I have a JavaScript link that is as follows:

<a href="#" onclick="window.open('TrackPackage.asp?track=235&ship=OTHER&ShippingMethod=1', '', 'location=1,menubar=1,scrollbars=1,status=1,resizable=1,width=635,height=460'); return false;">
<span class="PageText_L288n">TRACK YOUR PACKAGE</span>
</a>

However, it is being linked from a secure page, so it becomes a secure page. Unfortunately this creates a problem for me since a unsecured form is automatically submitted when they arrive at the page. They get prompted: this form is being submitted insecurely. There isn’t any sensitive data on those pages so I really don’t need the page to be secured in the first place. Is there an attribute, either in HTML or JavaScript that could make a link not secure. I cannot really modify the link itself because it’s a dynamic link.

However, I do believe some jQuery can add http://www.example.com/ before the TrackPackage.asp. I guess that would be acceptable, but I’d prefer some kind of attribute that will just make the link non secure. Thanks

  • 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-28T23:30:34+00:00Added an answer on May 28, 2026 at 11:30 pm

    You might try to override native function. But in some browsers that may not work (did not find such browser, so assume that it works in all, at least major, browsers 🙂 ):

    var windowOpen = window.open;
    window.open = function(url, name, settings) {
        var url = 'http://www.example.com/' + url;
        alert("New url = " + url);
        windowOpen(url, name, settings);  
    }
    

    If you want to do it for a selected class of the links then you can do it like this (the idea of the onclick attribute modification as a text string is not the best one)

    <script>
    var windowOpen = window.open, clicked = false;
    window.open = function(url, name, settings) {
        if (clicked) var url = 'http://www.example.com/' + url;
        alert("New url = " + url);
        windowOpen(url, name, settings);  
    }
    $(document).ready(function(){
       $('span.packagetracklink').click(function(){
            clicked = true;
            setTimeout(function(){clicked = false;}, 200);  
       });
    });
    </script>
    <a href="#" onclick="window.open('some_url', '', ''); return false;">
    <span class="packagetracklink">TRACK YOUR PACKAGE</span>
    </a><br>
    <a href="#" onclick="window.open('some_url', '', ''); return false;">
    <span class="another_class">TRACK YOUR PACKAGE</span>
    </a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Javascript that opens another window and registers a click handler for all
<a href=javascript:size('x')>HTML Link</a> I have the above code in my html file and want
I have a page with several links that open a separate window with varying
I have the following JavaScript code: Link In which the function makewindows does not
I have seen this link: Implementing Mutual Exclusion in JavaScript . On the other
I have a timer in my JavaScript which needs to emulate clicking a link
I've seen (and used) code to have a link spawn a javascript action many
I have the following js files in my code for EditInPlace... <?php echo $javascript->link('jquery.js');?>
I have JavaScript that is doing activity periodically. When the user is not looking
My JavaScript is as follows: $.get(/<page>.php, userid='.$userid.'&+status, function(data){ $(#status).show(fast).html(data).delay(4000).hide(fast); }); I have many links

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.