error77
asked on
JQuery Code modification needed
Hi all,
I need to tweet some functionality a bit.
Right now I am using this code:
$('body').ready(function() { self.open(); });
I have some links from Page A to page B.
I basically want this popup ONLY to open if it's coming from one of these link on page A
Is that tweek possible please?
THanks
I need to tweet some functionality a bit.
Right now I am using this code:
$('body').ready(function()
I have some links from Page A to page B.
I basically want this popup ONLY to open if it's coming from one of these link on page A
Is that tweek possible please?
THanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Basically I have a few links...
<a id="link1" href="link1.com">Link here</a>
Now ... I know that this code works:
$('body').ready(function() { self.open(); });
and popups the window, so I don't want to change that ..
I just need to wrap and IF which basically says:
If the refer link if Link1 then popup
example:
If (ID="link1") {
$('body').ready(function() { self.open(); });
}
or something like that?
Hope this helps
THanks
<a id="link1" href="link1.com">Link here</a>
Now ... I know that this code works:
$('body').ready(function()
and popups the window, so I don't want to change that ..
I just need to wrap and IF which basically says:
If the refer link if Link1 then popup
example:
If (ID="link1") {
$('body').ready(function()
}
or something like that?
Hope this helps
THanks
ASKER
$('body').ready(function()
is actually in a .JS file and not on page B ... would that be a problem?