Forum Moderators: open

Message Too Old, No Replies

Javascript wildcard

Is there one?

         

twist

9:15 pm on Apr 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I just signed up with a affiliate program and notice that in my status bar a huge ugly link appears in the status bar on mouseover.

I could of course add the following,

function nolink(){
window.status=""
return true
}

<a href="http://example.com" onMouseover="return nolink()">Link</a>

but I would prefer not to mess with the affiliates link on the off chance they might not like it. So I was thinking of something along this lines,

function nolink(){
if( window.status="affliate_name(insert wildcard character?)" ) { window.status=""; }
}

I can't seem to find the wildcard character for javascript, if there is one.

twist

1:33 am on Apr 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Been awhile since i've written any javascript but it's obvious I can't change the status on a mouse over from a page load. I just used a mouseover.

P.S. Wildcards can be achieved using regular expressions.