/    Sign up×
Community /Pin to ProfileBookmark

onlclick change the background image from popup

onlclick change the background image from popup

Hi i am using following script to change the background image of parent window from popup

but its ot working can any one help me in this ..

and along with the background if i want to chnage the main image then can i do that

=================

function callme2()
{
//opener.im2.list-style-image:url(logo.gif);
opener.im2.style.listStyleImage=’url(logo.gif)’;
}

//–>
</script>

<input type=button name=b1 value=”Preview Image” onclick=callme()>

=================

Sameer

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KorFeb 08.2005 — opener.document.getElementsByTagName('body')[0].style.backgroundImage=url('newbg.jpg');
×

Success!

Help @svsameer 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.18,
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,
)...