/    Sign up×
Community /Pin to ProfileBookmark

popup won’t link

Hi,

I have an index page that is generating a popup The user should be able to click on the image in the popup, that page should load in place of the index page, and the popup should close. Currently, nothing is happening when user clicks on popup.

Also, the popup image generated is supposed to be a random one. This is working okay, but the approach seems a little code-intensive. Can this be simplified using arrays of images and urls???

Here’s the url to the test index page: [url]http://www.ottertechnology.com/index_pop.html[/url]

Here’s the popup page:
[url]http://www.ottertechnology.com/popup4.html[/url]

Thanks for any and all help in advance! ?

belvialinda

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@VladdyJun 20.2003 — I do not get any popup at all....
Copy linkTweet thisAlerts:
@eddie_chJun 20.2003 — you would need to name the window itself in order to change it's current page! eg. window.name = win ; and then on the onclick eventhandler in the popup's image, target win's location to elsewhere... this tutorial would be very helpful:

http://www.webreference.com/js/tutorial1/index.html
Copy linkTweet thisAlerts:
@belvialindaauthorJun 20.2003 — Vladdy,

I think maybe you clicked on the bottom link, which is the popup. Try the first link. But at any rate, I did get it working...


eddie_ch,

Thanks for your help. I looked through the tutorial, but didn't find exactly my issue... And I was a little lost, too. :S But I kept trying things and, by hook or by crook, it is working. Yay!

Thanks to both of you for your assistance. Very much appreciated. ?

belvialinda
×

Success!

Help @belvialinda 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.15,
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,
)...