I think I've asked this question before and the answer was "it doesn't exist - write your own". But just to verfiy before I do write this.
I need to display a URL in the status bar. The URL must be the full http://website.com/file.php?mode=x.
Reason: I have onClick events on some page elements (<div>s etc) and style="cursor:pointer". These look like links when mouseover'd but the status bar doesn't show the URL that will be reached by clicking it. This is what I want to do with JS.
So on a page http://www.mysite.com/subdir1/...
Code: Select all
<div style="e;width:300px; height:300px; background:blue; cursor:pointer"e; onClick="e;window.location('./somedir/')"e;>Click here</div>
//Should show "e;http://www.mysite.com/subdir1/somedir/"e; in the status barCode: Select all
<div style="e;width:300px; height:300px; background:blue; cursor:pointer"e; onClick="e;window.location('?mode=test&x=6')"e;>Click here</div>
//Should display "e;http://www.mysite.com/subdir1/?mode=test&x=6"e; in the statusCode: Select all
<div style="e;width:300px; height:300px; background:blue; cursor:pointer"e; onClick="e;window.location('/newdir/')"e;>Click here</div>
//Should display "e;http://www.mysite.com/newdir/"e; in the statusIf I have to write my own I'll put it in snippets, or maybe somebody has done it already or theres one built in?
Cheers for any help