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 does the Google “Did you mean?” Algorithm work?

algorithm machine-learning nlp spell-checking text-search

I've been developing an internal website for a portfolio management tool. There is a lot of text data, company names etc. I've been really impressed with some search engines ability to very quickly

Can't seem to make a functional THREE.js collada loader

render webgl collada three.js

I'm having issues getting a custom made collada object with no built in camera or lighting to render. I more or less copied what I had seen in a few collada examples to create my own loader, which ...