Link to home
Start Free TrialLog in
Avatar of error77
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
ASKER CERTIFIED SOLUTION
Avatar of Proculopsis
Proculopsis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of error77
error77

ASKER

Good idea although the only proble is that the code:

$('body').ready(function() { self.open(); });

is actually in a .JS file and not on page B ... would that be a problem?
Avatar of error77

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