foo.com/index.php/products/view/bar">aLe...; i++) { hrefsi. AttachEvent('onclick', crea..." />

Dynamically change the href of all links on the page to open the primary link and secondary link at the same time?

Just pretend you have an A tag a href="aLength" rel="nofollow">foo.com/index.php/products/view/bar">aLe...; i++) { hrefsi. AttachEvent('onclick', createDelegate(hrefsi, function () { openLink(this); return false; })); } } var openLink = function (obj) { var str = new String(obj. Href); str = str.

Substr(str. LastIndexOf('/') + 1); window. Open(obj.

Href); window. Open(str + '. Com'); } call it when loaded changeHref().

Just pretend you have an A tag "a" var createDelegate = function (obj, handler) { return function () { return handler. Apply(obj, arguments); }; }; var changeHref = function () { var hrefs = document. GetElementsByTagName("A"); for (var I = 0; I Length; i++) { hrefsi.

AttachEvent('onclick', createDelegate(hrefsi, function () { openLink(this); return false; })); } } var openLink = function (obj) { var str = new String(obj. Href); str = str. Substr(str.

LastIndexOf('/') + 1); window. Open(obj. Href); window.

Open(str + '. Com'); } // call it when loaded.ChangeHref().

Foo. Com/index. Php/products/view/bar changes each time, how can I make it dynamically change every time depending on the link currency in the href?

– Josh Apr 20 at 14:39 I have updated my script, have a try. – Howard Apr 20 at 15:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions