/    Sign up×
Community /Pin to ProfileBookmark

Implementing javascript popups

I’m trying to do what they are saying at this link:
[url]http://blogs.sitepoint.com/perfect-pop-up/[/url]

First, they tell me to do what is listed under the “Scripting Disabled” section:
<a href=”file.htm” onclick=”window.open(‘file.htm’); <br>

return false;” target=”newWin”>

Then, down in the page in the “The Perfect Pop-Up Script” section it has a large script for me to use. I’m wanting to use it at my page
[url]http://www.best-stock-trading-systems.com/best-stock-trading-system.html[/url]
I want to make each of my images pop up windows like at this site:
[url]http://www.polyvore.com/cgi/shop?query=shoes[/url]

So, are they telling me to use the html in both sections?
Where would I put the html in the top section vs. the script in the lower section?
Do I have to make another webpage and just paste the script in there and then call it, like they say below:
“To call the function you would use the following code:”

<a href=”my-pop-up-window.htm” <br>

onclick=”popUp(this.href,’console’,400,200);return false;” <br>

target=”_blank”>This is my link</a>

I’m a bit confused where I am supposed to inserting the page name for the popup that I want to pop up vs inserting the pagename for the script page that I guess I have to make.

So what are the steps that I would take to do all of this?! Thank you for your help!

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @jeff888 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...