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

  • Home
  • SEARCH
  • 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 4534930
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:20:32+00:00 2026-05-21T14:20:32+00:00

In web development, JavaScript is often executed when clicking on elements. In both Internet

  • 0

In web development, JavaScript is often executed when clicking on elements.

In both Internet Explorer 9 and FireFox 4 a little message pops up in the bottom left hand corner with the JavaScript function will be executed by clicking on elements these elements.

ASP.NET makes use of the JavaScript __doPostback(…ugly parameter names..) on almost every element that sends a request to the server. This JavaScript is automatically added to the HTML elements that are generated by the ASP.NET controls and I have no way to circumvent this.

For example, an ASP.NET DropDownList is rendered as an HTML Select element and the __doPostBack() method is added to it so that whenever the user selects a new element, the server can process this action.

The __doPostaback() method is embedded into many of the ASP.NET controls and there is no easy way to change this.

One of my end users commented that this new feature makes it feel as if they are in “Debug-mode”….

So, my question is: how do I either make this popup show something user friendly…or is there a way to tell the browser (via HTML) not to display this nastiness?

Thanks!

-Frinny

  • 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-21T14:20:32+00:00Added an answer on May 21, 2026 at 2:20 pm

    Why don’t you make the href of the link a hashtag and attach the actual action via JavaScript:

    HTML
    <a id="foo" href="#foo">Foo</a>
    
    JS
    var foo = document.getElementById('foo');
    foo.onclick = function(e){
      //script foo!
      return false;
    };
    

    Your location will still be #foo to look nice, but the actual action will be in the foo.onclick function.

    Alternatively you can specify the event inline (<a href="foo" onclick="return foo();">Foo</a>), but I try to keep a clear MVC separation with HTML, CSS, & JS.

    Using a hashtag also gives you the ability to listen for hash-change events or check the hash tag onload so that a user can still middle-click a link and have it work correctly in a new tab.

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

Sidebar

Related Questions

Using C# for ASP.NET and MOSS development, we often have to embed JavaScript into
Most of javascript and web development books/articles says that you must put CSS in
Is there an addon that assists JavaScript (client-side) web development in browsers other than
I'm new to the web development world - that means I'm new to javaScript/CSS.
I am very new to Web development, and have been writing some javascript that
I am still pretty green when it comes to web development and javascript/jQuery programming,
I'm new to web development, I know some javascript, html , css and I'm
Improving Web Development Using Virtualization
For web development what are some standard/good java tools. That apply to all aspects
Let's take a web development environment, where developers checkout a project onto their local

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.