How to enable the window.status in a popup?

I'm using

window.status = "myStatusText" 

And it's working fine in a normal window in my application, but if I want to use this function in a normal old-fashioned popup-window, it is not working.

The statusbar of the popup is visible. I can see the original URLs of the hyperlinks in the statusbar and i want to hide them.

Is this normal, that window.status does not override the original text in a popup?

<span id="mySpan" class="mySpanClass">

<a id="myLink" href="javascript:myClickFunction();" onmouseover="window.status='myWindowStatus';" onmouseout="window.status='';" >Link</a>

</span>

I've removed the onmouseout event and now the onmouseover-text is visible, AFTER the mouse was pointing the link!

Answers


I realised that we need to cancel the inbuilt browser handling of the event. This is simple to do:

<a href="#" onmouseover="window.status = 'test'; return true;" onmouseout="window.status = ''; return true;">Text</a>

You probably are, but are you supplying status=1 in the window.open method?

For example:

window.open ("http://www.stackoverflow.com","mywindow","status=1");

Some browsers, for example IE, only show the status bar in a popup window if the site isn't trusted, so, for example, on an intranet site, unless you specifically add status=1, it wont show the status bar.

If you can see the status bar, are you getting a particular error or is it just not working at all?

Can you set the text of the status bar from some script inside the popup window?


Open the popup window this way

window.open ("you url", "mywindow","status=1,toolbar=1");


Open the popup with status=yes and it will work. – (check window.open documentation on MDN)


Need Your Help

How can I update my ADT plug-in?

android eclipse-adt

How I can update my ADT plug-in when I change the API level from 17 to 19 I get this message: "This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT

Getting “ieframe.dll failed to register” while installing an application built using watin?

c# watin

Recently I have developed an automation application using WatiN API, in .NET Framework 3.5, for automation of an AD posting process. But at the time of installation i get an error that states this,

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.