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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:40:00+00:00 2026-05-20T06:40:00+00:00

I have a certain UI element, which when clicked should navigate to another URL.

  • 0

I have a certain UI element, which when clicked should navigate to another URL.
I tried handling the mouse down event and execute something like this:
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(“http://google.com”), “_blank”);

However, this gets blocked by the browser (I tried both Chrome and Firefox) unless I disable the popup blocker.
I did some research and it seems that the browser blocks navigations that don’t occur as a result of user interaction and as far as the browser is concerned this navigation is initiated by a plugin (Silverlight), not a user.

OK, makes sense. But then I tried using a HyperlinkButton instead and it was NOT blocked.

I wonder why these two approaches get different treatment from the browser. Any idea?

I actually worked around the problem by wrapping the navigation triggering UI with a HyperLinkButton, but I’m still very curious…

  • 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-20T06:40:00+00:00Added an answer on May 20, 2026 at 6:40 am

    I’m going to pull a fancy corporate quote and say “It is a feature, not a bug.”

    The Silverlight team is obviously worried about Security. They don’t want crazy haxorz like you and I to do crazy things with our apps–you know, like popping up a bunch of browser windows all routing people to Zombo.com. Just imagine the choir! Zombo!

    Summarized from their documentation: They want us to only use the HyperlinkButton to go outside of their application. In fact, they went the extra step, and depending on our settings, they will even throw a SecurityException for us if we navigate to an outside page–Even from a HyperlinkButton. How nice.

    The real question: Why the Hyperlink Button and not something else?

    Only one “thing” can navigate. this take saves time for Microsoft while testing Silverlight. This one thing can navigate to both internal XAML pages and external web pages–Might as well be consistent and have only one way to do navigation.

    It is a UIElement. It’s code behind likes to run in the primary visual thread. It can promise the browser that a Visual Element wants to go somewhere. Microsoft can also put its limiting logic in a control that requires a mouse-click/keyboard-input event tree.

    All in all, it makes sense to start simple by making a control do the work.

    Fun stuff! Hope this helps you.

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

Sidebar

Related Questions

I have a certain POJO which needs to be persisted on a database, current
I have a script which hides (display:none) certain divs in the list on page
So if I had an input element in a certain div and another input
I have this situation where i want to call a certain element depended on
Do developers have to put certain/extra elements in the feed's XML file or attributes
I have a webpage where Firefox 2 displays the font certain, really specific elements,
I have a certain page (we'll call it MyPage) that can be accessed from
I have a certain application in MSVC6.0 all C code. I have it as
I have a certain service where specific functions will take longer to call than
I have the following situation: I have a certain function that runs a loop

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.