Link Alert!!
|
|
I'm sad with a link can someone make a script that notice me if the image or link i will click is the link "x" if u dont understand what i want please reply i can explain better |
|
|
I really don't understand, so if you could explain it better... |
|
|
href = "http://google.com";
function $x(p, context) {
if (!context) context = document;
var i, arr = [], xpr = document.evaluate(p, context, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (i = 0; item = xpr.snapshotItem(i); i++) arr.push(item);
return arr;
}
link = $x("//a[@href='"+link+"']");
if (link.length) {
link.forEach(function(l) {
l.setAttribute("onclick", "return confirm('this is your special link!\r\nyou sure?');");
});
}
|
|
|
Thats is what i mean...
☺ add just a part of web site like "www.example.com/new*" or "*.example.*"
thank you alot |
|
|
i put my link in:
|
|
|
please somebody helpme this is a simple script but really very usefull to me |
|
|
i put my link in:Either will do, but dob's intention was for you to do so on the top one. |
|
|
i did it but the script doesnt work |
|
|
Well I don't know about the rest of it, but a quick further look tells me that |
|
|
no.. its right.. but it dont work |
|
|
somebody help me please |
|
|
up! |
|
|
up |
|
|
how about posting the script you're using? |
